No, it doesn’t seem that there is. The base Python 'Knob' interface (which is 
how the 'tracks' knob’s underlying class is exposed) only supports float values 
for getting/setting.

-Nathan



From: John Mangia 
Sent: Wednesday, January 30, 2013 8:38 PM
To: Nuke user discussion 
Subject: Re: [Nuke-users] Nuke 7 tracker and python?

Now, is there a way to get the name of a particular tracker in the new tracker 
node without parsing the node out?  I'm guessing again that there is no built 
in function for this.


On Wed, Jan 30, 2013 at 11:30 PM, John Mangia <[email protected]> wrote:

  This is definitely helpful, though it would be nice if there were a built in 
function.  Thanks guys. 



  On Mon, Jan 28, 2013 at 6:42 PM, Nathan Rusch <[email protected]> 
wrote:

    Ah yes, great catch Ben. Seems there's still no way to correlate track 
names with tracks, or even determine how many tracks exist in the knob, but you 
can at least get access to all the data by indexing into the knob.

    -Nathan

    -----Original Message----- From: Ben Dickson
    Sent: Monday, January 28, 2013 2:59 PM 

    To: Nuke user discussion
    Subject: Re: [Nuke-users] Nuke 7 tracker and python?


    The script used to export the tracks as a CornerPin etc are accessible,
    as they are written entirely as PyScript_Knobs

    Print the script behind the "Create" button:

    print nuke.selectedNode()['createCornerPin'].value()

    ..which shows stuff like:

    if cornerPinOption == 0:
      tracker.knob("createPinUseCurrentFrame").execute()

    Then if you print the value of the knobs like createPinUseCurrentFrame
    you get the relevant exporter script, e.g:

    print nuke.selectedNode()['createPinUseCurrentFrame'].value()

    Some scripts will be more useful than others as examples

    On 27/01/13 06:10, John Mangia wrote:

      Does anyone have examples of how to get at the tracking data in the Nuke
      7 tracker?

      Thanks,
      John


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


    -- 
    ben dickson
    2D TD | [email protected]
    rising sun pictures | www.rsp.com.au
    _______________________________________________
    Nuke-users mailing list
    [email protected], http://forums.thefoundry.co.uk/
    http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users 
    _______________________________________________
    Nuke-users mailing list
    [email protected], http://forums.thefoundry.co.uk/
    http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users








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

Reply via email to