Is there a way to script for Lux to work on original nodes?
LuxCore's shader code is written in C++ and OpenCL.
To write new textures or materials, you have to clone the codebase, write your code in C++ (and optionally OpenCL) and compile the binaries with your changes.

Some information on this process:


LuxCoreRender Github Repository
Compiling LuxCore
Implementing a Texture


Unfortunately we don't have detailed in-depth documentation on the development process yet. But you are welcome to ask any question in our forums or discord.