cudarsjanis Posted January 18, 2017 Share Posted January 18, 2017 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 Quote Link to comment Share on other sites More sharing options...
Atom Posted January 18, 2017 Share Posted January 18, 2017 (edited) 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 January 18, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
cudarsjanis Posted January 18, 2017 Author Share Posted January 18, 2017 (edited) 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 Thanks Edited January 18, 2017 by cudarsjanis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.