Page 1 of 1

Writing nodes in LUA?

PostPosted: Thu Aug 18, 2016 3:26 am
by mxmiceli
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

Re: Writing nodes in LUA?

PostPosted: Thu Aug 18, 2016 5:45 am
by bepeg4d
Hi mxmiceli,
if you want a node that interacts with other nodes, then you have to look specifically at the Scripted Graph Lua node:
viewtopic.php?f=73&t=42588
I guess that the "old school exposure" by abstrax is a good starting point for what you are looking for:
viewtopic.php?f=73&t=43944
Don't hesitate to ask or to post your code here if you get stuck ;)
Happy scripting,
ciao beppe