With your second point, about channels appearing from newly created Read
nodes:
We have a script which brings in several EXR's with one or more layers,
and combines them into one pipe using a bunch of Copy nodes.. and it
seems to work quite reliably (although never tried it with anywhere near
100 layers)
I was creating the nodes by doing this:
formatted = "%s %d-%d" % ("/example/path.%04d.exr", 1001, 1024) #
hardcoded example framerange etc.. usually calculated
r = nuke.nodes.Read()
r['file'].fromUserText(formatted)
Then querying the layers using:
for layer in nuke.layers(r):
...
On 27/02/14 19:15, Thorsten Kaufmann wrote:
> Heya,
>
>
>
> I am seeing quite a lot of issues with programmatically assembling
> scripts. Anyone got any tips? Here’s
>
> some of the issues:
>
>
>
> - Creating nodes does not update their DAG position/size
> values. So autobackdropping does not work because the screenWidth is not
> available. You can force an update calling node.xpos() BUT this does not
> work for NoOps.
>
> - Creating reads works fine, but channels are not immediately
> created it seems. When creating around 100 reads and piping them into a
> zMerge and then trying to ChannelMerge a bunch of channels the channels
> to be created by the reads are not available. They are created though
> and it works if I run the script a second time in the same nuke-script.
>
> - Creating channels via nuke.Layer does not really seem to
> work. They are available in layer knobs, but not in channel knobs it
> seems (?!?) Creating them via nuke.tcl works
>
>
>
> This list probably should go on, but these are the most pressing issues
> for me atm. Do I really have to precreate channels for reads (which can
> be REALLY tricky)? And even then fall back to TCL to do so?
>
>
>
> Cheers,
>
> Thorsten
>
> Thorsten Kaufmann
> Production Pipeline Architect
>
> ------------------------------------------------------------------------
>
> Mackevision Medien Design GmbH
> Forststraße 7
> 70174 Stuttgart
>
> T T +49 711 93 30 48 78
> F +49 711 93 30 48 90
> M +49 151 19 55 55 02
>
> [email protected]
> http://www.mackevision.de
>
> Geschäftsführer: Armin Pohl, Joachim Lincke, Karin Suttheimer
> HRB 243735 Amtsgericht Stuttgart
>
>
>
>
> _______________________________________________
> 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