Hi Jason,grimm wrote:I found some LUA issues:
It looks like there are some problems with how LUA is handling grouped nodes. When you pull the selected node (and a group node is selected) by using:
You always get the same node of the type "NT_GEO_MESH = 1" which causes the isGraph() to fail because it doesn't match. The same issue happens if you do a findItemsByName and search for a node that is within the group. It again responds only with a node of type "NT_GEO_MESH = 1".Code: Select all
octane.project.getSelection()[1]
Although doing this works and finds all the nodes correctly:
JasonCode: Select all
octane.nodegraph.getRootGraph():findNodes(octane.NT_RENDERTARGET, true)
The item returned by
octane.project.getSelection
or octane.nodegraph.findItems
isn't a node. It's a graph of type octane.GT_STANDARD
which happens to be equal to one (and octane.NT_GEO_MESH
). So the returned item isn't a node at all (or group node), we call it a graph.I hope this solves your problem or are there any other issues?
cheers,
Thomas