Imagine there's:

   - curve1
   - particles1 emitted from curve1
   - black to white ramp1


I'd like to:

   - use a black to white ramp to control the lifespan of particles being 
   emitted along a curve
   - by somehow mapping particle1.lifespanPP to ramp1.getValueAtPosition()
   - where the argument passed into getValueAtPosition() is the normalized 
   value of where the particle was born on the curve (a float from 0 to 1, 
   where 0 represents one end of the curve and 1 represents the other end)

So the two problems are: 

   1. Find, on a scale of 0 to 1, where a particle was born along the 
   length of the curve
   2. Once that's found, how can I use the ramp as something like a lookup 
   table to get a value to set particle1.lifespanPP?

Any help would be greatly appreciated.  If there's an easier way of doing 
this, I'm all ears.  Also greatly appreciated would be explaining this to 
me like I'm 5…Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/46b14d6f-4446-45a1-b484-0d5d2a108fee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to