Lua auto nodes connection

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
Issa
Licensed Customer
Posts: 26
Joined: Fri Feb 14, 2014 5:21 pm

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 462 times
gah5118
Licensed Customer
Posts: 358
Joined: Thu Jun 02, 2011 4:25 pm

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
User avatar
whersmy
Licensed Customer
Posts: 723
Joined: Thu Aug 30, 2012 7:40 am

YES! :geek:
Octane 2022.1.1 nv535.98

x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090

Octane Render experiments - ♩ ♪ ♫ ♬
Post Reply

Return to “Lua Scripting”