Is it possible to script octane renderer to load a .obj file and display the result?
I'd be very interested in knowing if this can be done.
-- create mesh node and load obj file
mesh = octane.node.create{ type = octane.NT_GEO_MESH, name = "loaded mesh" }
mesh:setAttribute(octane.A_FILENAME, "/home/thomas/Documents/obj-files/cube.obj")
-- create render target and connect with mesh
rt = octane.node.create{ type = octane.NT_RENDERTARGET, name = "OBJ render" }
rt:connectTo(octane.P_MESH, mesh)
-- render
octane.render.start{ renderTargetNode = rt }
Users browsing this forum: No registered users and 12 guests