vray.BinUserAttributesWriter¶
- class vray.BinUserAttributesWriter¶
Bases:
objectA class used to binary serialize user attributes to V-Ray IntList.
Methods
__init__(*args, **kwargs)add(self, name, value, float, AColor, …)Add user attribute.
close(self)Finalize attributes per instance.
toIntList(self)Get binary serialized data as IntList for easier assignment as plugin property value.
- add(self, name: str, value: int, float, AColor, Vector, str) bool¶
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(self) None¶
Finalize attributes per instance. Call close() to separate attributes between different instances.