Getting 0.0 is odd, but with the Format object you'd get the
width/height like so:

f = nuke.root().format()
print f.width()
print f.height()
print f.pixelAspect()

(not sure if nuke.root().format() is any different to
nuke.root['format'] - practically they are seem identical)

On 07/02/14 09:23, Howard Jones wrote:
> 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
> 

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

Reply via email to