Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import modo
- scn = modo.Scene()
- relationshipModifierItem = scn.addItem('cmChannelRelation')
- chan = modo.channel.Channel('value', relationshipModifierItem)
- chan.envelope.keyframes.add( 0.5, 0.5)
- chan.envelope.keyframes.add( 1.5, 1.5)
- chan.envelope.keyframes.add( 1.9, 1.7)
- for key in chan.envelope.keyframes:
- print key
- # Select the item so you can look at the animation curve
- scn.deselect()
- relationshipModifierItem.select()
- # Can you see the three keyframes?
- # Does the channel source display 'edit' until you scrub the timeline?
- # Do you see the keyframes in the graph editor now?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement