Skip to content

0.6.4

Latest
Compare
Choose a tag to compare
@mottosso mottosso released this 27 Feb 17:17
· 3 commits to master since this release

Nodes and Plugs now look much nicer and tell you much more about them, thanks to #78!

>>> decompose = cmdx.createNode("decomposeMatrix", name="decompose")

# str() still outputs the name of the node
>>> str(decompose)
'decompose'

>>> transform = cmdx.createNode("transform")

# repr() on the other hand shows you whether it's a DagNode or Node
>>> transform
cmdx.DagNode("transform1")

>>> transform["tx"] = 5
>>> transform["worldMatrix"][0] >> decompose["inputMatrix"]

# Plugs show you both the type and value
>>> decompose["outputTranslate"]
cmdx.Plug("decompose", "outputTranslate") == (5.0, 0.0, 0.0)
>>> decompose["outputTranslate"].read()
(5.0, 0.0, 0.0)