Jump to content
bonassus

Vellum Group by creation frame

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.

 

Share this post


Link to post
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

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

×