Vizard 7 » Command Index » Vizard modules » viz » <viz:res>.addPublishFileLoader
7.6

<viz:res>.addPublishFileLoader

Add a file loader plugin to the publish dependency list

<viz:res>.addPublishFileLoader(  
ext  
)  
ext
File extension

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

<viz:res>.addPublishDirectory
<viz:res>.addPublishFile
<viz:res>.addPublishFilter
<viz:res>.addPublishImageLoaders
<viz:res>.getPublishedPath