Howard,
if you make this work I will be very grateful. This is one annoying thing
about Nuke.


Ron Ganbar
email: [email protected]
tel: +44 (0)7968 007 309 [UK]
     +972 (0)54 255 9765 [Israel]
url: http://ronganbar.wordpress.com/


On 1 March 2011 12:26, Howard Jones <[email protected]> wrote:

> 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