PDA

View Full Version : how to add keys to a an envelope?



bazsa73
06-25-2014, 01:53 AM
Hello Folks,
Problem is the following:
I have this small script which activates the Flare Intensity (lens flare property) envelope for all light in the scene. That works fine.
I can now query also one by one these channels I just cant figure out how to add keyframes to these envelopes. When I tried CreateKey
command it added keys to the transform channels of the light.
All helps are appreciated.
Cheers.

RebelHill
06-25-2014, 05:30 AM
you want...

chan.createkey(val,time)

Its a method of the channel object, whereas the create key command is like hitting create key in the interface.

bazsa73
06-25-2014, 06:07 AM
Thanks! I just figured it out myself meanwhile. I'll be back.