Advertisement
Guest User

TD SDK keyframes refresh(?) issue

a guest
Jul 7th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. import modo
  2. scn = modo.Scene()
  3.  
  4. relationshipModifierItem = scn.addItem('cmChannelRelation')
  5. chan = modo.channel.Channel('value', relationshipModifierItem)
  6.  
  7. chan.envelope.keyframes.add( 0.5, 0.5)
  8. chan.envelope.keyframes.add( 1.5, 1.5)
  9. chan.envelope.keyframes.add( 1.9, 1.7)
  10.  
  11. for key in chan.envelope.keyframes:
  12.     print key
  13.  
  14. # Select the item so you can look at the animation curve
  15. scn.deselect()
  16. relationshipModifierItem.select()
  17.  
  18. # Can you see the three keyframes?
  19. # Does the channel source display 'edit' until you scrub the timeline?
  20. # Do you see the keyframes in the graph editor now?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement