vfxlearner Posted November 25, 2014 Share Posted November 25, 2014 Hi guys,Anyone can help me in understanding the process of execution of this code ] setpointattrib(geoself(),"name",newpt, name); removeprim(geoself(),@primnum, 1); Quote Link to comment Share on other sites More sharing options...
magneto Posted November 25, 2014 Share Posted November 25, 2014 It sets the name point attribute and then removes the primitive along with the points. 1 Quote Link to comment Share on other sites More sharing options...
vfxlearner Posted November 26, 2014 Author Share Posted November 26, 2014 Thank you Magneto Quote Link to comment Share on other sites More sharing options...
vfxlearner Posted November 26, 2014 Author Share Posted November 26, 2014 im confused!!! can anyone help me with this string name = prim(0, "name", @primnum); is 0 a primitive ? is it assigning "name" variable to the @primnum of primitive 0? Quote Link to comment Share on other sites More sharing options...
rayman Posted November 26, 2014 Share Posted November 26, 2014 (edited) 0 means the geometry from the first input. @primnum is the primitive number to get the attribute value from. This code assigns the value of "name" attribute to the "name" variable. You can always check documentation: http://www.sidefx.com/docs/houdini13.0/vex/functions/ Edited November 26, 2014 by rayman 1 Quote Link to comment Share on other sites More sharing options...
vfxlearner Posted November 27, 2014 Author Share Posted November 27, 2014 Thank you rayman Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.