Writing nodes in LUA?

Forums: Writing nodes in LUA?
Forum for OctaneRender Lua scripting examples, discussion and support.

Writing nodes in LUA?

Postby mxmiceli » Thu Aug 18, 2016 3:26 am

mxmiceli Thu Aug 18, 2016 3:26 am
I had a few questions about LUA and the node graph. I think I understand how a scripted graph like the turntable animation works with a popup-gui that then executes an action based on your params. I was wondering though if and how it would be possible to make or write a node using LUA.

For my purposes I want to make a multiply node (for floats) in order to improve a checkerboard masking tool for textures. Image below should explain it.

So my question is, is this doable? I am having a hard time understanding some of the lua forum information. Would anyone be able to help me understand how to make a math node with pins like what is pictured?

Octane LUA_edit.png
Licensed Customer
Licensed Customer
Posts: 9
Joined: Sun Jul 17, 2016 8:17 am

Re: Writing nodes in LUA?

Postby bepeg4d » Thu Aug 18, 2016 5:45 am

bepeg4d Thu Aug 18, 2016 5:45 am
Hi mxmiceli,
if you want a node that interacts with other nodes, then you have to look specifically at the Scripted Graph Lua node:
I guess that the "old school exposure" by abstrax is a good starting point for what you are looking for:
Don't hesitate to ask or to post your code here if you get stuck ;)
Happy scripting,
ciao beppe
User avatar
Octane Guru
Octane Guru
Posts: 7765
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 2 guests

Sat Dec 05, 2020 10:58 pm [ UTC ]