Unfortunately you're not *yet* able to use the Hiero APIs from the command
line, I'm sorry to say.

Personally, I agree with you, it's something I would very much like to see
as I have a suite of tools that would benefit from being CLI-only.

Needless to say, it is on our road map.

Best regards

Frank.

On 16 January 2016 at 18:55, Justin GD <j.grosde...@gmail.com> wrote:

> Hi All,
>
> I have two questions for you regarding NukeStudio & its hiero module :
>
> 1. Nuke can be imported as a module in python. Is it possible to do the
> same with hiero.core ?
>
> 2. If not; I'm trying to launch NS in batch mode and call a python file :
>
> [pathToNukeExec] --studio -it myFile.py
>
> In myFile.py I simply do:
> import hiero.core
>
> This should work but I get this error which some of you had as well:
>
> *NukeStudio 9.0v8, 64 bit, built Oct 26 2015.*
> *Copyright (c) 2015 The Foundry Visionmongers Ltd.  All Rights Reserved.*
> *Licence expires on: 2016/1/26*
> *Traceback (most recent call last):*
> *  File "test.py", line 4, in <module>*
> *    import hiero.core*
> *  File "C:\Program
> Files\Nuke9.0v8\pythonextensions\site-packages\hiero\__init__*
> *.py", line 2, in <module>*
> *    import FnRedirect*
> *  File "C:\Program
> Files\Nuke9.0v8\pythonextensions\site-packages\hiero\FnRedire*
> *ct.py", line 1, in <module>*
> *    from _fnpython import **
> *ImportError: No module named _fnpython*
> *No module named _fnpython*
>
>
> Why does this happens ?
> If it is not possible to call hiero.core from batch mode, what is the
> point of that command ?
>
> Do you have any solution to *create & modify a NS file (.hrox) in batch
> mode* ?
>
> Many thanks,
> Justin
>
> _______________________________________________
> 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
>
>


-- 
Frank Harrison
Senior Nuke Software Engineer
The Foundry
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
Email: frank.harri...@thefoundry.co.uk
_______________________________________________
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