lib
execute_sptree_command(zscript, communicator=None)
Execute Speedtree command.
Note that this will not wait around for the Speedtree command to run or for its completion. Nor will errors in the script be detected or raised.
Source code in client/ayon_speedtree/api/lib.py
29 30 31 32 33 34 35 36 37 38 39 |
|
export_model(current_file, fbx_filepath, xml_filepath)
Function to export model in fbx format along with the xml file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
current_file | str | current file | required |
fbx_filepath | str | fbx output filepath | required |
xml_filepath | str | xml output filepath | required |
Source code in client/ayon_speedtree/api/lib.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
get_workdir()
Return the currently active work directory
Source code in client/ayon_speedtree/api/lib.py
24 25 26 |
|
load_spm_file(spm_file, communicator=None)
Load spm file for either loading existing file or refreshing purpose. There is no way in SpeedTree to increment and save for current workfile. Ayon needs to always save and re-load the spm file again for getting the latest version.
Source code in client/ayon_speedtree/api/lib.py
117 118 119 120 121 122 123 124 125 126 127 |
|
save_scene(window_title)
Hacky function to save file during context before passing it into the headless SDR to publish or increment and save file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
window_title | str | Current Ayon tool windows. | required |
Source code in client/ayon_speedtree/api/lib.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|