Hi,
I'm having some odd issues with attributes. I use the measure SOP to measure the primitive area, using the ‘override name’ option, setting the name to ‘original’. I then use an attribute transfer SOP to transfer this attribute to new geometry. This seems to work, as I can see ‘original’ in the details view on the new geo.
Then I measure area again, overriding name to ‘new’. I now see ‘new’ and ‘original’ in the details view. Now, I would like to use a Delete SOP and delete ‘$NEW < $ORIGINAL’. However, neither of those attributes are accessible in the expression. Further, $AREA exists in the expression, but shouldn't exist at all and is not present in the detail view.
What is going on? :?
Attribute exists in detail view but can't use in expression?
4450 6 0-
- KMcNamara
- Member
- 228 posts
- Joined: Dec. 2012
- Offline
-
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
Come on its not that bad > Your title “woes” made me chuckle. See attached
The prim attributes are not available because they have not been mapped. You can map any variable , note I have unchecked the write values parameter to map . I then use the mapped variable to delete some prims based on an if statement
Rob
The prim attributes are not available because they have not been mapped. You can map any variable , note I have unchecked the write values parameter to map . I then use the mapped variable to delete some prims based on an if statement
Rob
Gone fishing
-
- KMcNamara
- Member
- 228 posts
- Joined: Dec. 2012
- Offline
-
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
KMcNamara
So that I understand - I thought that the area node created attributes? Why do I need to re-map them to attributes again?
Variables != attributes [sidefx.com]. Attributes are real (numbers), variables are aliases (shortcuts) for attributes. Some variables are there by default, most not. Mapping links them. Having an attribute doesn't imply the existence of variable.
-
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
-
- KMcNamara
- Member
- 228 posts
- Joined: Dec. 2012
- Offline
-
- animatrix_
- Member
- 4769 posts
- Joined: Feb. 2012
- Offline
It's also important to note that if you leave the Local Variable parameter field empty in the AttribCreate SOP, a variable is automatically created. But the same does NOT happen when using an Add Attribute VOP, which should to be uniform all across the board IMO.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
-
- Quick Links