Skip to content

0.4.2

Compare
Choose a tag to compare
@mottosso mottosso released this 25 Aug 12:47
· 252 commits to master since this release
fd94482

Added support for writing to Matrix plugs.

node = cmdx.createNode("transform")
node["translate"] = (1, 2, 3)
node["rotate", cmdx.Degrees] = (20, 30, 40)

# Create a new matrix attribute
node["myMatrix"] = cmdx.Matrix()

# Store current world matrix in this custom attribute
node["myMatrix"] = node["worldMatrix"][0].asMatrix()
  • See #9 for details