I think I just threw up in my mouth a little bit.
Thanks Ben
On 20/07/15 14:53, Ben Dickson wrote:
The Python API for the Tracker4.tracks knob is pretty awful.. but
there is a bunch of example scripts hidden in PyScript_Knobs used by
the "create" button
nuke.selectedNode()['selected_tracks'].value()
for name, knob in nuke.selectedNode().knobs().items():
if name.startswith("create"):
print knob.value()
..and one of the scripts uses the "selected_tracks" knob, which
returns a comma-separated string containing the selected track indices
(i.e 0 for first in list)
idxs = [int(x) for x in
nuke.selectedNode()['selected_tracks'].value().split(",")]
On 20/07/15 12:09, Frank Rueter|OHUfx wrote:
Hi all,
I need to access a selected track's animation curve but can't figure out
how to get there. There doesn't seem to be anything obvious in the
Tracker node's "tracks" knob that let's you access the tracks, let alone
figure out which one is selected. The toScript method would provide a
nasty hack to get to the tracks, but again, no indication of which one
is selected.
Does anybody have an idea how to do this?
Cheers,
frank
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python