changehpx
May 8, 2023 09:09:02
Why do I create an array but only have one number when I print down?
tpetrick
May 12, 2023 03:31:56
An expression with
@attribute is the same as using
@attribute.0, e.g. the first value of an array. This is behavior that's inherited from SOPs, which originally introduced the
@attrib syntax. If you want to access all of the values in the array as a string, you need to use the
pdgattribvals("attrib") function:
https://www.sidefx.com/docs/houdini/expressions/pdgattribvals.html [
www.sidefx.com]