Just doing some quick testing...
"externalShell_grp" has an X- transform of 10 units.
root = lux.getSceneTree()
val = luxmath.Matrix().makeIdentity().val()
print('val:', val)
for node in root.find(name = "externalShell_grp"):
name = node.getName()
print('nodeName:', name)
print('/n')
print('node:', node)
print('/n')
getTrans = node.getTransform()
print('getTrans:', getTrans)
print('/n')
Matrix = luxmath.Matrix(val).makeIdentity()
print('Matrix:', Matrix)
node.applyTransform(Matrix)
returns:
val: (1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0)
nodeName: externalShell_grp
/n
node: <lux.SceneNode object at 0x12c808768, name: "externalShell_grp", kind: Group>
/n
getTrans: <luxmath.Matrix object at 0x12c808840>
(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 10.0, 0.0, 0.0, 1.0)
/n
Matrix: <luxmath.Matrix object at 0x12c808708>
(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0)
If val() is just a tuple, maybe I can use that to compare?
It prints successful but the transforms don't get updated. What am I doing wrong?