Jump to content

@name attribute without assembly ?


CinnamonMetal

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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...