Thanks Bruno-Pierre!
works a treat! Thanks so much for
your help!
Cheers,
andrew
:)
----------------------------------------------------------------------
Message: 1
Date: Mon, 8 May 2017 11:50:59 -0400
From: Bruno-Pierre Jobin <bpjo...@gmail.com>
Subject: Re: [Nuke-users] how to get this automated keyframe offset
python script to work
To: Nuke user discussion <nuke-users@support.thefoundry.co.uk>
Message-ID:
<cagqttnsgpmejpdgwr_lbnkxnne8k8-ddxrveoz-mpm9ssgf...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi Andrew,
You can simply copy slips.py in your .nuke directory. And then, from the
script editor, do the following.
import slips
for i in nuke.allNodes(): # iterates through every nodes
slips.slip_animations_of_node(i,1000) # offset every animated knobs
by 1000 frames
Depending on the complexity of your nuke script, it can be quite long to
run this script through every nodes. If you can, I suggest you make a list
of the nodes you want to offset and iterates through that list. By
selecting the wanted nodes, this will make a list out of it.
myList = [i for i in nuke.selectedNodes()]
Hope this helps.
Cheers!
On Mon, May 8, 2017 at 12:44 AM, Andrew Shanks <and...@vfx.co.nz> wrote:
Hey guys,
I'm not much of a python guy (keep trying to learn more,
keep getting busy with the comping, ...but getting there slowly). Anyway, I
was looking into ways to offset all the animated keyframes in a script
(including cameras), useful for bumping an offline postviz comp into line
with final edited shots. Of course I could manually go through every
animated node and add a *curve(frame+offset)* to each animated parameter,
but that would be painful as I'm looking at doing this for a whole show. So
i was looking for a more automated way.
I found the below python code mentioned on the mailing list a few years
back and looks interesting, ....only problem is I haven't the foggiest idea
how to get that puppy going (I'm guessing I should call the python script
and define commands in the menu.py, but not really sure what I should be
defining). I was just wondering if Julik Tarkhanov who wrote it might be
lurking and able to shed light on it, or if someone else here can help this
comp monkey out.
https://gist.github.com/julik/3673783
Cheers!
andrew
:)
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users