Parameter values using VEX function

   301   2   0
User Avatar
Member
25 posts
Joined: Dec. 2016
Offline
Hello Everyone,
Can anyone explain how to set parameter values using VEX function?
Say for example,there is a sphere, scattered. If the current frame is between 5 and 10, the number of scatter points should be 10 else 0.


if(@Frame >= 5 && @Frame <= 10)
{
@scattercount=10;
}
else
{
@scattercount=0;
}

How to set @scattercount to force total count parameter of scatter sop.

Thank you.
User Avatar
Member
288 posts
Joined: Dec. 2014
Offline
i@scattercount = 0;

if(@Frame >= 5 && @Frame <= 10){
i@scattercount = 10;
}
User Avatar
Member
25 posts
Joined: Dec. 2016
Offline
Hi thanks for the reply.
How to use this value outside vex function?
  • Quick Links