Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HtoA Custom Attributes and Operators

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Slava_91
404 Views, 2 Replies

HtoA Custom Attributes and Operators

Hi!
It is possible to use custom attributes or @name with operators, for Collections?
Can we make find an example somewhere other than the documentation that is now down?
Thanks

Labels (4)
2 REPLIES 2
Message 2 of 3
Stephen.Blair
in reply to: Slava_91

Yes, you would use them in the selection expression.


Parameter Matching

Selections can also be used to match parameter names and values on the selected nodes, including the node entry name, type, and derived type. This is done using a parameter dot-delimiter .() on each node selection string. The following example selection matches all nodes named 'sphere' which have a 'radius' parameter:

sphere.(radius)

Comparators can be used to match certain parameter values. The following selection matches all nodes whose name starts with 'sphere' and has a 'radius' larger than 0.5:

sphere*.(radius > 0.5)


The parameter matching also supports concatenation and glob/regex, e.g.:

car*.((make == 'fiat' and year > 2010) or tinted_glass == True) or drone*.(battery_level >= 20) 
plane*.(model == 'A3*' and captain == r'B(ob|ryan)')


// Stephen Blair
// Arnold Renderer Support
Message 3 of 3
Slava_91
in reply to: Stephen.Blair

it's working, thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums