Quick follow-up.. these knobs are only available for certain codecs.
H.264 is one of them.
There also seems to be a bug setting the codec using the string name
('h264'). This works for some codecs, but not others. Best to go with
the number it is in the list, as in Christian's example.
Sean Brice wrote:
There are certain items from the advanced panel that you can set using
python.
'fps', 'keyframerate', and 'quality' are available.
For example.
w1 = nuke.nodes.Write()
w1['file_type'].setValue(7) #setting to .mov
w1['codec'].setValue('h264') #setting to H.264
w1['fps'].setValue(17)
w1['keyframerate'].setValue(5)
w1['quality'].setValue('Low')
[Tested in Nuke 6.3v6]
Cheers,
Sean
Wouter Klouwen wrote:
Hi Manley,
I'm afraid this isn't possible at the moment.
Thanks,
Wouter
On 06/03/2012 00:56, Manley wrote:
Was this problem ever resolved?
*Christian Kaestner wrote:*
Hi there,
is there a way I can access the "advanced" knob of the H.264 Quicktime
codec settings from within python?
I only need to define a high quality setting and a low quality setting,
which means technically I can hard code the number/settings in, if I
knew how to define them.
something along the line of:
w1 = nuke.nodes.Write()
w1['file_type'].setValue(7) #setting to .mov
w1['codec'].setValue(10) #setting to H.264
w1['advanced'].setValue(**Can I access these settings somehow?**)
Thanks
Christian
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
Sean Brice, Product Designer
The Foundry, 6th Floor, The Communications Building
48 Leicester Square,
London, WC2H 7LT, UK
Tel: +44 (0)20 7968 6828 / Fax: +44 (0)20 7930 8906 / Web: www.thefoundry.co.uk
The Foundry Visionmongers Ltd / Registered in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python