Yes that is what I attempted to do but I keep pulling in nodes that I didn't place in the graph, the "Old Mesh Preview RenderTarget" named node is one that getOwnedItems finds at the end of the node list. Usually I just break when I find the first node, this is usually the last node I have created in the graph. I wanted the first node created so I removed the break and let the for loop run to the very last node (which should be the first one created?). Instead I get a node that I didn't create and it doesn't work anyway because it has no camera associated with it.
1.24 is acting very strangely with Lua, it seems that every time I run the script something different happens. I removed the break command so the script would find the last node and I got this error:
- Code: Select all
No pin P_CAMERA in nodes with type NT_CAM_THINLENS
I run it again and I get:
- Code: Select all
No pin P_CAMERA in nodes with type NT_GEO_MESH
And again I get:
No pin P_CAMERA in nodes with type NT_KERN_DIRECTLIGHTING
The error is for this line in turntableG_anim.lua:
- Code: Select all
local copyCam = copyRt:getInputNode(octane.P_CAMERA)
I posted the rest of the code in my turntable thread, very strange. It's probably me doing something bad in the code.
Thanks,
Jason