Trees | Indices | Help |
|
---|
|
1 # Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved. 2 3 import nuke 46 p = nuke.Panel("Loop") 7 p.addSingleLineInput("First frame of loop:", 1) 8 p.addSingleLineInput("Last frame of loop:", nuke.animationEnd()) 9 result = p.show() 10 if result: 11 anim = nuke.animations() 12 for i in anim: 13 loopstart = p.value("First frame of loop:") 14 loopend = p.value("Last frame of loop:") 15 nuke.animation(i, "expression", ("curve(((frame-"+loopstart+")%("+loopend+"-"+loopstart+"+1))+"+loopstart+")",))16 17 20 21 #uplevel #0 { 22 # set am_x "x" 23 # set am_y "y" 24 #} 25 #proc animation_move {} { 26 # global am_x am_y am_dy am_ldy 27 # # fail if no selected points: 28 # animation selected test 29 # while 1 { 30 # if [catch {panel "Move Animation keys" { 31 # {x am_x} 32 # {y am_y} 33 # {slope am_dy} 34 # {"left slope" am_ldy} 35 # }}] return 36 # if [catch {animation selected move x $am_x y $am_y dy $am_dy ldy $am_ldy} result] { 37 # alert $result 38 # } else break 39 # } 40 #} 41 42 48 49 58
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Nov 23 08:52:27 2012 | http://epydoc.sourceforge.net |