Page 1 of 1

what about python ?

Posted: Thu Jun 09, 2016 2:59 pm
by gui2one
Apart from standard ui parameters, are there any part of the octane plugin exposed to python ?

Right now my goal is to control the ipr window size.
I am trying to make shader ball previewer by dynamically creating the few necessary nodes to replicate octane standalone shader ball scene.

Re: what about python ?

Posted: Thu Jun 09, 2016 3:10 pm
by juanjgon
Nope, sorry. Currently there are no commands to set the IPR window size from a script. You can set the default IPR window size in the preferences.

There is a command to open the IPR window (Octane_openIPR). I could add a new command to set the IPR size before open the window. Let me think about it.

-Juanjo

Re: what about python ?

Posted: Mon Aug 01, 2016 10:37 am
by gui2one
Hi Juanjgon,

any updates on some python access to cancel rendering ?

Re: what about python ?

Posted: Mon Aug 01, 2016 10:45 am
by juanjgon
gui2one wrote:Hi Juanjgon,

any updates on some python access to cancel rendering ?
To cancel the render or to close the IPR window?

-Juanjo

Re: what about python ?

Posted: Mon Aug 01, 2016 1:56 pm
by gui2one
to cancel the render preferably.
I am trying to avoid overwriting existing image files.
but having access to closing IPR window could be handy in some situations. :)

Re: what about python ?

Posted: Mon Aug 01, 2016 2:27 pm
by juanjgon
Ahh, yes, I've just remembered this feature request. It is in my TODO list. I could also add an option to skip the rendered frames.

-Juanjo

Re: what about python ?

Posted: Mon Aug 01, 2016 2:32 pm
by gui2one
yes that would be nice too

Re: what about python ?

Posted: Tue Aug 09, 2016 12:09 pm
by gui2one
Hi again,
I didn't think of that before, but if it is easier for you, I don't mind if these commands are Hscript, as long as it's possible to to use the python hou.hscript() method.