Jump to content

POP Wrangler att inside popvop?


mk1976

Recommended Posts

Bind VOP works perfectly :) 

thx a lot.

:D

 

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.

Link to comment
Share on other sites

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

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...