what about python ?

Forums: what about python ?
Houdini Integrated Plugin

Moderator: juanjgon

what about python ?

Postby gui2one » Thu Jun 09, 2016 2:59 pm

gui2one Thu Jun 09, 2016 2:59 pm
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.
---------------------------------
Windows 10 |NVIDIA RTX TITAN - 24GB| i9-9900K | 64GB RAM
gui2one
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Thu May 19, 2016 8:16 pm

Re: what about python ?

Postby juanjgon » Thu Jun 09, 2016 3:10 pm

juanjgon Thu Jun 09, 2016 3:10 pm
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
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: what about python ?

Postby gui2one » Mon Aug 01, 2016 10:37 am

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

any updates on some python access to cancel rendering ?
---------------------------------
Windows 10 |NVIDIA RTX TITAN - 24GB| i9-9900K | 64GB RAM
gui2one
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Thu May 19, 2016 8:16 pm

Re: what about python ?

Postby juanjgon » Mon Aug 01, 2016 10:45 am

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

any updates on some python access to cancel rendering ?


To cancel the render or to close the IPR window?

-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: what about python ?

Postby gui2one » Mon Aug 01, 2016 1:56 pm

gui2one Mon Aug 01, 2016 1:56 pm
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. :)
---------------------------------
Windows 10 |NVIDIA RTX TITAN - 24GB| i9-9900K | 64GB RAM
gui2one
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Thu May 19, 2016 8:16 pm

Re: what about python ?

Postby juanjgon » Mon Aug 01, 2016 2:27 pm

juanjgon Mon Aug 01, 2016 2:27 pm
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
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: what about python ?

Postby gui2one » Mon Aug 01, 2016 2:32 pm

gui2one Mon Aug 01, 2016 2:32 pm
yes that would be nice too
---------------------------------
Windows 10 |NVIDIA RTX TITAN - 24GB| i9-9900K | 64GB RAM
gui2one
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Thu May 19, 2016 8:16 pm

Re: what about python ?

Postby gui2one » Tue Aug 09, 2016 12:09 pm

gui2one Tue Aug 09, 2016 12:09 pm
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.
---------------------------------
Windows 10 |NVIDIA RTX TITAN - 24GB| i9-9900K | 64GB RAM
gui2one
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Thu May 19, 2016 8:16 pm

Return to Houdini


Who is online

Users browsing this forum: No registered users and 7 guests

Tue Apr 16, 2024 8:22 pm [ UTC ]