Methods ¶
__init__()
Create a LopInstanceIdRule object with default settings.
instanceIds(lopnode)
→ tuple
of int
Calculates the instance ids that match the pattern on the point instancer
primitive on the stage generated by the provided LOP node
object. The returned tuple of integers are ids from the point instancer’s
ids
attribute. If no ids
attribute is set on the point instancer, the
instances are assumed to have increasing ids starting at 0.
primPath()
→ str
Return the path to the point instancer primitive that is used to evaluate the instance id pattern.
setPrimPath(primpath)
Sets the path to the point instancer primitive that is used to evaluate the instance id pattern.
instanceIdPattern()
→ str
Return the pattern that described the instance ids that should be
returned by the instanceIds
method. This pattern accepts standard
Houdini numeric range formatting, like what is provided in SOP group
parameters.
setInstanceIdPattern(pattern)
Sets the pattern that described the instance ids that should be
returned by the instanceIds
method. This pattern accepts standard
Houdini numeric range formatting, like what is provided in SOP group
parameters, such as 2-5
to indicate ids between 2 and 5, or
^15
to exclude id number 15.