Jump to content

dop startframe in pop wrangle


Recommended Posts

Is there any easy way to access dop start frame and endframe in a pop wrangle?

My solution is to create attributes and then feed them into dops. But is there a better way to do that?

My wrangle:

float randVal = rand(@id);
i@birthFrame = floor(fit(randVal,0,1,@simStartFrame,@simEndFrame));

 

Thanks

Janis

 

 

sim.png

Link to comment
Share on other sites

You can simply reference the channel from VEX. Very similar to the expression you used in the Value field assignment.

float start_frame = ch("../startframe");
float end_frame = ch("../endframe");
float randVal = rand(@id);
i@birthFrame = floor(fit(randVal,0,1,start_frame,end_frame));

 

Edited by Atom
Link to comment
Share on other sites

1 hour ago, Atom said:

You can simply reference the channel from VEX. Very similar to the expression you used in the Value field assignment.


float start_frame = ch("../startframe");
float end_frame = ch("../endframe");
float randVal = rand(@id);
i@birthFrame = floor(fit(randVal,0,1,start_frame,end_frame));

 

yeah. that should do the job.

Only there is no parameter called endframe, but I can ad one more parameter on dopnet node, and just put $RFEND there.

SO one node less then. good :D

Thanks

Edited by cudarsjanis
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...