Open topic with navigation
<viz:res>.addPublishFileLoader
Add a file loader plugin to the publish dependency list
<viz:res>.addPublishFileLoader( |
|
ext |
) |
|
Remarks
This command manually adds a file loader plugin to the publish dependency list.
Vizard will automatically detect all file loader plugins that are used during the publish process. However, if your script dynamically loads certain files, then the file loader plugin might not be included in your published executable.
In this case, you can use this command to tell Vizard that your script should support loading the specified file extension within published executables.
Return Value
None
Example
# Support loading PNG images
viz.res.addPublishFileLoader('png')
# Support loading FBX models
viz.res.addPublishFileLoader('fbx')
See also