top create attributearray?

   829   1   0
User Avatar
Member
3 posts
Joined: Sept. 2021
Offline
Why do I create an array but only have one number when I print down?

Attachments:
微信截图_20230508210814.png (67.7 KB)
微信截图_20230508210758.png (41.3 KB)

User Avatar
Staff
586 posts
Joined: May 2014
Offline
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]
  • Quick Links