Thanks! Stupidly easy when you know how. Need to find where I put my brain this week. Howard
> On 6 Feb 2014, at 23:01, Nathan Rusch <[email protected]> wrote: > > To stop getting 0.0 results, don't use knob.getValue()... use knob.value() > instead. Once you have the Format object, just use its .width() and .height() > methods to get your values. > > -Nathan > > > -----Original Message----- From: Howard Jones > Sent: Thursday, February 06, 2014 2:53 PM > To: Nuke Python discussion > Subject: [Nuke-python] Root.format > > Sorry for the dumb question but I'm trying to get the values of the > nuke.root()['format']. > > I either get an object or say the value 0.0 if at 'default'. > > What I'm after is the width and height of the script's selected format. > > Any help appreciated. > > Howard_______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
