Trees | Indices | Help |
|
---|
|
Contains the functionality to switch between defined variants of a model.
Functions | |||
bool |
|
||
|
|||
vrVariantSet |
|
||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
dict |
|
||
string |
|
||
string |
|
||
list of strings |
|
||
list of strings |
|
||
string |
|
||
string |
|
||
list of strings |
|
||
list of strings |
|
||
list of strings |
|
||
vrVariantSet |
|
||
string |
|
||
list of strings |
|
||
list of strings |
|
||
|
|||
|
|||
|
|||
|
|||
vrVariantSet |
|
||
|
|||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Starts the dissection process. This saves the current state of all material and geometry variants and then disables all nodes in the scene graph.
|
Captures variants to an existing variant set. Use createVariantSet(name) before capturing to create a new variant set.
|
Creates a variant set.
|
Creates a variant set group.
|
Deletes a variant set.
|
Deletes a variant set group. The variant sets of the group will be ungrouped and not be deleted.
|
Creates a snapshot in dissection mode. Actually, there are 4 versions of it: dissectionSnapshot() creates a snapshot in default size (from the preferences). The user will be asked for a filename. dissectionSnapshot(filename) creates a snapshot in default size (from the preferences). dissectionSnapshot(filename,width,height) creates a snapshot in specified size. dissectionSnapshot(filename,width,height,ssf) creates a snapshot in specified size and with the provided supersampling factor.
|
Ends the dissection process. This restores the previously saved state of all materials and nodes.
|
Gets all variant sets.
|
Returns the current state of a material variant.
|
Returns the default state of a material variant.
|
Returns all possible states of a material variant.
|
Returns a list of all material variants of a single variant set or a list of all material variants of all variant sets if you omit the name parameter.
|
Returns the current state of a node variant.
|
Returns the default state of a node variant.
|
Returns all possible states of a node variant.
|
Returns a list of all node variants of a single variant set or a list of all node variants of all variant sets set if you omit the name parameter.
|
Returns a list of all animations of a variant set.
|
Gets a variant set.
|
Get a preview image for the variant set (if it has one). Convert returned data to Base64:
|
Returns a list of all defined variant sets.
|
Returns a list of all viewpoints belonging to a variant set.
|
Disables the geometry that is switched by a material variant.
|
Disables the geometry that is switched by a node variant.
|
Disables the geometry that is switched by a variant set.
|
Loads variant definitions from an XML file.
|
|
Render variant set preview .
|
Saves the current switched geometry/materials into a file. Unused parts of the scene as well as unused materials will not be saved to disk. The file will only contain geometry and materials that are really needed for the actual scene. Depending on the configuration of your scene this file could be much smaller than the original.
|
Saves the variant definitions to an XML file.
|
Activates a state of a material variant. The parameter "state" allows possible values like "!Previous", "!Previous (Loop)", "!Next" and "!Next (Loop)" to cycle through or the name of the material to be activated.
|
Activates a state of a node variant. The parameter "state" allows possible values depending on the type of node variant. For a typical node like a geometry or a group "!Enable", "!Disable" and "!Toggle" are possible, for a switch variant it is possible to enable all children with "!All", disable all children with "!None", cycle through with "!Previous", "!Previous (Loop)", "!Next" and "!Next (Loop)" or choose the appropriate child simply with its name. If this parameter is omitted, the default state will be activated.
|
Activates the default state of a variant set. All its associated node and material variants will be set to their defaults, respectively.
|
Enables the geometry that is switched by a material variant.
|
Enables the geometry that is switched by a node variant.
|
Enables the geometry that is switched by a variant set.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Nov 29 09:33:21 2024 | http://epydoc.sourceforge.net |