ayon_third_party
ThirdPartyDistAddon
Bases: AYONAddon
, ITrayAddon
Addon to deploy 3rd party binary dependencies.
Addon can also skip distribution of binaries from server and can use path/arguments defined by server.
Cares about supplying ffmpeg and oiiotool executables.
Source code in client/ayon_third_party/addon.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
download_ffmpeg(progress=None)
Download ffmpeg from server.
Todos
Add safeguard to avoid downloading of the file from multiple processes at once.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
progress | TransferProgress | Keep track about download. | None |
Source code in client/ayon_third_party/utils.py
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 |
|
get_ffmpeg_arguments(tool_name='ffmpeg')
Get arguments to run one of ffmpeg tools.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tool_name | FFmpegToolname | Name of tool for which arguments should be returned. | 'ffmpeg' |
Returns:
Type | Description |
---|---|
Optional[List[str]] | list[str]: Path to OpenImageIO directory. |
Source code in client/ayon_third_party/utils.py
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 |
|
get_oiio_arguments(tool_name='oiiotool')
Get arguments to run one of OpenImageIO tools.
Possible OIIO tools
oiiotool, maketx, iv, iinfo, igrep, idiff, iconvert
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tool_name | OIIOToolName | Name of OIIO tool. | 'oiiotool' |
Returns:
Name | Type | Description |
---|---|---|
str | Optional[List[str]] | Path to zip info file. |
Source code in client/ayon_third_party/utils.py
862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 |
|
is_ffmpeg_download_needed(addon_settings=None)
Check if is download needed.
Returns:
Name | Type | Description |
---|---|---|
bool | bool | Should be config downloaded. |
Source code in client/ayon_third_party/utils.py
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 |
|
is_oiio_download_needed(addon_settings=None)
Check if is download needed.
Returns:
Name | Type | Description |
---|---|---|
bool | bool | Should be config downloaded. |
Source code in client/ayon_third_party/utils.py
620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 |
|