mic Posted March 2, 2009 Share Posted March 2, 2009 hello! please help me to query the number of first (or any else) point of the primitive. what i want: i must create an expression like: point ("../node1", ##[here must be first, second or third point of the primitive, which number i calculated before using 'xyzdist']##, 'some_attribute', 0) so, i need the list of points which form my primitive.. how can i get it? thank you! Quote Link to comment Share on other sites More sharing options...
Jason Posted March 2, 2009 Share Posted March 2, 2009 You could use a PythonSOP, perhaps? Quote Link to comment Share on other sites More sharing options...
mic Posted March 2, 2009 Author Share Posted March 2, 2009 You could use a PythonSOP, perhaps? thank you, Jason, i'll try! Quote Link to comment Share on other sites More sharing options...
mic Posted March 2, 2009 Author Share Posted March 2, 2009 the python SOP didn't help me.. but i've found another solution. if anyone is interested, please look the example scene. points_of_prims.zip Quote Link to comment Share on other sites More sharing options...
petz Posted March 3, 2009 Share Posted March 3, 2009 attached is an alternative solution. it points_of_prims1.hipnc Quote Link to comment Share on other sites More sharing options...
mic Posted March 3, 2009 Author Share Posted March 3, 2009 attached is an alternative solution. it Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted March 3, 2009 Share Posted March 3, 2009 Fastest way to find first point of each primitive: Add "primitive SOP" Switch to Attribute tab Add Alpha Replace $CA with $PT After doing this primitive`s alpha attribute will contain first point number. Quote Link to comment Share on other sites More sharing options...
mic Posted March 3, 2009 Author Share Posted March 3, 2009 Fastest way to find first point of each primitive:Add "primitive SOP" Switch to Attribute tab Add Alpha Replace $CA with $PT After doing this primitive`s alpha attribute will contain first point number. thank you, Andrew) 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.