CinnamonMetal Posted June 30, 2018 Share Posted June 30, 2018 The Pack SOP doesn't create a @name attribute; how can it be created otherwise without using the assembly SOP ? Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted July 1, 2018 Share Posted July 1, 2018 You can use whatever to set your name attribute as long as its a primitve attribute. ex: put down a connectivity and use the @class attribute. s@name = "piece"+itoa(i@class); or you could use the primitive number itself s@name = "packed_prim"+itoa(@primnum); or closest point to this primitive int nearpt = nearpoint(1,@P); s@name = "say_my_name"+itoa(nearpt); or get the name of the closest point int nearpt = nearpoint(1,@P); s@name = point(1,"name",nearpt); Its just an attribute you can call whatever and name whatever. If several primitives have the same attribute with the same value, they get packed togheter. 1 Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted July 1, 2018 Author Share Posted July 1, 2018 (edited) The pack sop shows the name attribute but immediately following is the connect adjacent pieces sop and that shows 0 ? Edited July 1, 2018 by CinnamonMetal Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted July 1, 2018 Share Posted July 1, 2018 (edited) In the "attribute transfer", set it to name. After that insert an attribute promote, where you promote your name attribute from primitive to point. Now your connect adjacent pieces will have the name attribute. connect_adjacent_01.hiplc Edited July 1, 2018 by ThomasPara example file Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted July 1, 2018 Author Share Posted July 1, 2018 The connectivity sop is set to point as the attribute class; why use an attribute transfer to convert it to point when it's already a point attribute ? Sorry if I'm not understanding something Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted July 2, 2018 Share Posted July 2, 2018 I was tierd when i wrote that post, but its all in the file. 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.