On 4 May 2011 21:45, Lewis Saunders <[email protected]> wrote:
> Try this:
>
> import glob
> for filename in glob.glob('/path/to/chan/files/*.chan'):
> node = nuke.createNode('Light2')
> nuke.tcl('in %s {import_chan_file %s}' % (node.name(), filename))
>
>
That worked, thanks!
I am also trying to get one other parameter out of the chan files into a
floating point user knob, at the moment I'm selecting the value (right
clicking File > Import Ascii..) then using that same chan file again with
"Column for offset" at "5". Is there a way of adding that to the script as
well?
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python