Jump to content

Vellum Group by creation frame


bonassus

Recommended Posts

I have a vellum sim in a dopnet set to continuous and activation set to $FF%20==1. Which creates a vellum cloth on every 20th frame. How can I set a group to each emitted cloth so i can separate them post sim? 

thanks in advance for any help.

 

Link to comment
Share on other sites

What I usually do if I want to separate things like this post frame is that I note the creation frame as an attribute and separate it post sim based on that. Using a wrangle with some VEX code similar to:

if(i@creationframe==0)
{
i@creationframe = @Frame;
}

But this concept could be used to put stuff into unique groups as well. Something like:

if(i@lock == 0)
{
setpointgroup(0,'groupnamehere',@ptnum);
i@lock = 1;
}

For the group name, maybe just use "'Vellum_' + itoa(@Frame)".

Hope that can be helpful

  • 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...