mk1976 Posted September 10, 2015 Share Posted September 10, 2015 Hi,Noob questionI am creating a float attrib "time_in" inside POP Wrangler. the value is diplaying correctly in Geometry Spreadsheet.my question is how can i access this attrib inside popvop? Quote Link to comment Share on other sites More sharing options...
magneto Posted September 10, 2015 Share Posted September 10, 2015 You have to connect the ptnum input to Global ptnum output. Or just use the Bind VOP. Quote Link to comment Share on other sites More sharing options...
anim Posted September 10, 2015 Share Posted September 10, 2015 Bind VOP would be the quickest way otherwise to use Import Point Attribute you have to specify what is the First Input you can do that on your POP VOP/Inputs tab and set First Input to Myself Quote Link to comment Share on other sites More sharing options...
mk1976 Posted September 10, 2015 Author Share Posted September 10, 2015 Bind VOP works perfectly thx a lot. by the way, I have a question: what is the difference between: "f@time_in = -1.0" and "float f@time_in = -1.0" ? I get 2 different result! -------------------------------------- f@time_in = -1.0;if (@time_in == -1){ @time_in = @Frame; }else{ @time_in = @time_in;} // the result is: all points will have the same value for @time_in, which is the actual current frame number in the timeline. -------------------------------------- float @time_in = -1.0;if (@time_in == -1){ @time_in = @Frame; }else{ @time_in = @time_in;} // the result is: each point will have its own value @time_in, the frame number at which the point enters the group. Quote Link to comment Share on other sites More sharing options...
anim Posted September 10, 2015 Share Posted September 10, 2015 f@time_in = -1.0; sets value for each point to -1.0 therefore it as well satisfies your condition and therefore sets current frame for all points every time float @time_in = -1.0; just sets default value for time_in attribute, so doesn't change the value for points that already have it, but for all newly added points it will initialize value to -1.0 until you set it to something else Quote Link to comment Share on other sites More sharing options...
mk1976 Posted September 10, 2015 Author Share Posted September 10, 2015 thanks for your helpful explanation do you recommend some tutorials on these topics, that are updated to R14? 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.