Great shameless plug!
Thanks Nathan - I think i can see what I need at a quick glance. - very useful

Howard
p.s. (have you already done this??)

 





________________________________
From: Nathan Rusch <[email protected]>
To: Nuke Python discussion <[email protected]>
Sent: Tue, 1 March, 2011 17:24:41
Subject: Re: [Nuke-python] copy paste keyframes


Why not just use Nuke‘s Python interfaces for dealing with animation curves  
and 
keys? 

 
<shameless plug> 
http://www.nukepedia.com/python/animationcurve-and-animationkey-objects/
 
-Nathan

 
From: Howard Jones 
Sent: Tuesday, March 01, 2011 5:09 AM
To: Nuke Python discussion 
Subject: Re: [Nuke-python] copy paste keyframes
  I should  add its the search for x and replace - move to next one  I'm not 
sure about  - the rest I can figure out

Cheers
Howard

 Twenty4D VFX Ltd
www.twenty4d.com

 
 

________________________________
 From: Howard Jones  <[email protected]>
To: Nuke Python discussion  <[email protected]>
Sent: Tue, 1 March, 2011  10:26:48
Subject: [Nuke-python]  copy paste keyframes


Dear  all

I want to extend the copy paste keyframes function in Nuke to allow  you to 
paste copied keyframes to current frame
ie I copy a keyframe at frame  12 and want to paste at 30. At the moment the 
only way I know to do this in Nuke  is to move the keyframes to desired 
position, copy, undo then paste.
A bit  clunky.

Someone may have done this and like to share but  otherwise...

So in python what is the best way to take the clipboard as  such

{:selected_only: x1 0 x10 20} {:selected_only: x1 0 x10 30} 

work out the frame difference (current frame - first frame in  text)
search for all x'n' s and replace with new value

ie to paste at  frame 30

30-1 = 29
find x1 - get number (strip x) add 29
replace x1  with x30

move onto next x add 29
replace

etc...

Any help  greatly appreciated

Howard
Twenty4D VFX Ltd
www.twenty4d.com

 
________________________________
 _______________________________________________
Nuke-python mailing  list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to