Search - User list
Full Version: TOP node parameter reference SOP
Root » PDG/TOPs » TOP node parameter reference SOP
nuclear_polygon
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
tpetrick
The only way to safely access SOP data from TOPs is to use a geometry import TOP node. You can use it to import points, prims or geometry, and select which attributes to copy onto work items.
nuclear_polygon
Hmm… yep, it imports attributes. but how can I access them values?
nuclear_polygon
or even not the attribs itself but only the list of their names?
tpetrick
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
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
Thanx a lot! This is very helpful reply. This thing is kind of hard to get clear without some guidance
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB