Skip to content

Commit

Permalink
Merge pull request #16 from mottosso/usability
Browse files Browse the repository at this point in the history
Usability
  • Loading branch information
mottosso authored Sep 26, 2020
2 parents a37d2eb + a938ba8 commit 3d4ff1c
Show file tree
Hide file tree
Showing 2 changed files with 244 additions and 95 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,13 @@ import cmdx
from maya import cmds
node = cmdx.createNode("transform")

cmds.setKeyframe(str(node), attribute="tx", time=[1, 100], value=0.0)
cmds.setKeyframe(str(node), attribute="tx", time=[50], value=10.0)
cmds.keyTangent(str(node), attribute="tx", time=(1, 100), outTangentType="linear")
# Make some animation
tx = cmdx.create_node("animCurveTL")
tx.keys(times=[1, 50, 100], values=[0.0, 10.0, 0.0], interpolation=cmdx.Linear)

# Query it
node = cmdx.create_node("transform")
node["tx"] << tx["output"]
node["tx"].read(time=50)
# 10.0
```
Expand Down
Loading

0 comments on commit 3d4ff1c

Please sign in to comment.