Lua auto nodes connection

Forums: Lua auto nodes connection
Forum for OctaneRender Lua scripting examples, discussion and support.

Lua auto nodes connection

Postby Issa » Mon Jul 23, 2018 10:21 am

Issa Mon Jul 23, 2018 10:21 am
Hi all,
I wrote a script to perform automatic node connection in Octane standalone in order to speed up my workflow.
The script try to connect the selected nodes based on vertical position on the graph, alt+v shortcut.

Image
Attachments
V Connection.lua
(1.07 KiB) Downloaded 398 times
Issa
Licensed Customer
Licensed Customer
 
Posts: 26
Joined: Fri Feb 14, 2014 5:21 pm

Re: Lua auto nodes connection

Postby gah5118 » Sat May 01, 2021 2:31 am

gah5118 Sat May 01, 2021 2:31 am
this is nice!

I'm beating my head against the wall trying to figure out a few things and this has much of it. (new to lua and octane api)

one thing that isn't working is connecting a selected alembic node.. or rather nodegraph which is the error returned
string "V Connection.lua"]:17: bad argument #2 to 'canConnectToIx' (octane.node expected, got octane.nodegraph)

I'm trying to create something where, you drop an orbx file into the scene, then with it selected, run a script which will create geometry output and a camera output. then connect them to the perspective camera and the alembic nodegraph.
Windows 8.1 | i7 950 | GTX 780ti | 24gb ddr3
gah5118
Licensed Customer
Licensed Customer
 
Posts: 358
Joined: Thu Jun 02, 2011 4:25 pm

Re: Lua auto nodes connection

Postby whersmy » Sat May 01, 2021 7:09 am

whersmy Sat May 01, 2021 7:09 am
YES! :geek:
Octane 2022.1.1 nv535.98
mac pro g5| pentium g2030 iGPU| maximus extreme V| 2x gtx590 - 8gb - SSD - win7-x64- 1500W Silverstone|
x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090

Octane Render experiments
User avatar
whersmy
Licensed Customer
Licensed Customer
 
Posts: 723
Joined: Thu Aug 30, 2012 7:40 am

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 4 guests

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