Vincent
On 4/26/07, Julian Johnson <
julian(at)exch.demon.co.uk> wrote:
> I'm trying to figure out a way to animate the end key of a Particle Age
> FCurve attached to my particle's alpha so that through the course of the
> simulation the rate of the alpha curve (from 1 to 0) becomes quicker.
> The idea is that the lifetime over which the particles dissolve becomes
> quicker over the sim.
>
> I've tried a simple scripted op on the ptype using the SCOP Wizard:
>
> oAlpha = Inoriginal.Value.Parameters('Alpha')
> oCurve = oAlpha.Source
> oKey = oCurve.Keys(1)
> #do sundry stuff to the key (ultimately tie in to animation time)
> oKey.Set(oKey.Time,oKey.Value + 5)
> return
>
> But the script seems to fail at
oAlpha.Source.
>
> In isolation, from the ScriptEd, the script basically works:
> oPType = Application.GetValue('ParTypes.original')
> oCurve = oPType.Alpha.Source
> #do sundry stuff to the key (ultimately tie in to animation time)
> key = oCurve.Keys(1)
> key.Set(key.Time,key.Value -.2)
> print key.Time, key.Value
>
> Anyone have any ideas :-) ?
>
> Julian
>
> ========================================
>
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of Men-from-Mars unless specifically stated.
>
> If you have received it in error, please delete it from your system. Do not
> use, copy or disclose the information in any way nor act in reliance on it
> and notify the sender immediately.
> ---
> Unsubscribe? Mail
Majordomo(at)Softimage.COM
with the following text in body:
> unsubscribe xsi
>