vray.BinUserAttributesWriter¶
- class vray.BinUserAttributesWriter¶
Bases:
object
A class used to binary serialize user attributes to V-Ray IntList.
Methods
__init__
(*args, **kwargs)Add user attribute.
Finalize attributes per instance.
Get binary serialized data as IntList for easier assignment as plugin property value.
- add()¶
Add user attribute.
- Arguments:
name, string - The name of the user attribute to add.
value, number, AColor, Vector or string - The the user attribute value to add.
- close()¶
Finalize attributes per instance. Call close() to separate attributes between different instances.
- toIntList()¶
Get binary serialized data as IntList for easier assignment as plugin property value. This will reset the state of BinUserAttributesWriter and clear all the data held in it!