Jump to content

How can i change the attribute for particles based on the lifespan of


Recommended Posts

hi~guys

I got a problem :angry: , How can i change the attribute for particles based on the lifespan of each particles?

For example, i have an emitter to generate particles from frame 1 to frame 20(one particle per frame). and i want to make every particles be affected by wind based on the lifespan of each particles.(for instance,lifespan = 5 )

So how can i make this kind of animation? can i use event node?

Any other way that can make this similar effect?lifespan.hipnc

Thanks

Link to comment
Share on other sites

How can i change the attribute for particles based on the lifespan of each particles?

For example, i have an emitter to generate particles from frame 1 to frame 20(one particle per frame). and i want to make every particles be affected by wind based on the lifespan of each particles.(for instance,lifespan = 5 )

You figured out the Source POP turn off continuous birth (set to 0) and use impulse with the expression:

$F<=20

and the impulse rate set to 1.

$AGE is there for you to use by default.

In a Wind POP, for the amplitude parameter, it's probably best to use $LIFE as it is a percentage value of the current age over total lifespan from 0 to 1.

Just type in:

$LIFE * 10

where 10 is a multiplier to control the force.

If you want more control, use:

fit01( <value>, <min_value>, <max_value>)

where fit01 takes a value and assumes it goes from 0 to 1, then remaps it to the minimum and maximum values supplied.

e.g.:

fit01( $LIFE, 0.5, 20)

will remap $LIFE from 0 to 1 to then go from 0.5 to 20.

If you want to use $AGE, it will vary from 0 to 5 or whatever the particle's total lifespan is. You can use the:

fit( <value>, <initial_min>, <initial_max>, <final_min>, <final_max>)

like this:

fit($AGE, 0, 5, 0.5, 20)

to get the same result as the fit01() using $LIFE.

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