Jump to content
CinnamonMetal

@name attribute without assembly ?

Recommended Posts

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.

  • Like 1

Share this post


Link to post
Share on other sites

The pack sop shows the name attribute but immediately following is the connect adjacent pieces sop and that shows 0 ?

Edited by CinnamonMetal

Share this post


Link to post
Share on other sites

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 by ThomasPara
example file

Share this post


Link to post
Share on other sites

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 :) 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×