You can create a file on the filesystem and open it all through Python.


Ron Ganbar
email: ron...@gmail.com
tel: +44 (0)7968 007 309 [UK]
     +972 (0)54 255 9765 [Israel]
url: http://ronganbar.wordpress.com/

On Wed, Dec 2, 2015 at 11:46 AM, Justin GD <j.grosde...@gmail.com> wrote:

> Hi Den,
>
> I guess you could create a nuke script as same as a Nuke Studio nuke
> script exporter..
>
>
> [...]pythonextensions\site-packages\hiero\core\nuke\Script.py
>
> You have the ScriptWriter class with a method called *writeToDisk *that
> uses* nuke.saveToScript( scriptFilename, fileContents )*
>
> Maybe that could help ?
>
>
> Cheers,
> Justin
>
>
> 2015-12-01 16:38 GMT+00:00 Den Serras <denserras...@gmail.com>:
>
>> Hi all,
>>
>> Due to our pipeline, we have to create the Nuke file for the artist. We
>> currently create a template which is duplicated and moved into the correct
>> spot, but I'd prefer to do it more dynamically so every time I push a
>> change to the setup I don't have to generate a new file. I tried launching
>> the CLI and then saving the file, but none of my init scripts that actually
>> modify the file seem to be running in the CLI. Don't know if I'm doing
>> something wrong or this method won't work. Anyone have a dynamic way to
>> create a script, or are those who prebuild scripts always using templates?
>>
>> Thanks!
>> Den
>>
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to