I'm trying to access SOP data from TOP network. Hscript Parameter expression brings the value to AttribCreate TOP parameter, but work item value is zero(see attachment)
Houdini 18.5.351
TOP node parameter reference SOP
2245 6 1- nuclear_polygon
- Member
- 20 posts
- Joined: 11月 2018
- Offline
- tpetrick
- スタッフ
- 586 posts
- Joined: 5月 2014
- Offline
- nuclear_polygon
- Member
- 20 posts
- Joined: 11月 2018
- Offline
- nuclear_polygon
- Member
- 20 posts
- Joined: 11月 2018
- Offline
- tpetrick
- スタッフ
- 586 posts
- Joined: 5月 2014
- Offline
In your screenshot, you've configured the node to create a work item for the “specified group”. That means you get one work item for that group – it will list the attributes from elements in the group and the size, but it does not import the individual elements. If you want to import the attributes you'll need to either import “each element in the specified” group“ or ”each element".
- tpetrick
- スタッフ
- 586 posts
- Joined: 5月 2014
- Offline
In order to use the attributes downsteam, you can access them in expressions using the work item @attribute accessor or of the pdgattrib(..) function. If you want to get all of the values of an array attribute, you can use pdgattribvals(“primitiveattribs”) in an HScript expression on a downstream node. Both the @ operator and pdg* functions are evaluated for each input work item.
- nuclear_polygon
- Member
- 20 posts
- Joined: 11月 2018
- Offline
-
- Quick Links