Jump to content

repeat length animation


chumbucket

Recommended Posts

Hi.

I do have a DOP network which creates points.

On those points I'm copystamping a line.

I want to animate the length of the line starting with the birth of aforementioned points. So for every birthed point the length should start with 0 and reach a certain value in 1 sec.

Here is a mock-up of what it should look like.

animated_scale.gif.76aac804faa945d3268ef5c65936edb6.gif

I have no clue where to start. timeshift, for each loop, vops, vex.

Edited by chumbucket
Link to comment
Share on other sites

You could use the particles age and life attributes and write them into a scale attribute in a wrangle like so:

// Normalize the age by dividing it with the life attribute, this will give a value between zero and one
float nage = @age/@life;
//Because nage is a float variable it will be copied three times in the vector scale attribute
v@scale = nage;

Then plug this into a copy sop with your line geo at the maximum length you want.

  • Thanks 1
Link to comment
Share on other sites

Thanks Sean!

Just to clear it up for others.

1. create a wrangler after the pop net

2. in the wrangler write

float nage = @age/@life;
//f@length because I just want to manipulate the length of the line and not the whole scale. Idon't want to fudge with the initial velocity I have set //previously. The 50 is just a multiplier. You could "ch" it for more convenience aswell
f@length = nage*50;

3. In the copy sop tick on "Stamp Inputs" and create a variable "length" with the value "@length" referencing the previously created attribute from the wrangler

4. write this in the length parameter of the line sop

//the line geo will look up the value from the copy sop. "0" is the default value
stamp("../copy1/","length",0)

 

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