Skip to content

Commit

Permalink
Merge pull request #3103 from Autodesk/santosg87-patch-1
Browse files Browse the repository at this point in the history
Update EditRouting.md
  • Loading branch information
seando-adsk authored May 18, 2023
2 parents 2c0a6e7 + 9e5368a commit 2f3e6f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/EditRouting.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ using a function called `routeToSessionLayer`:
import mayaUsd.lib
mayaUsd.lib.registerEditRouter('visibility', routeToSessionLayer)
```
Routing attributes that are affected by certain commands is still necessary, as
routing a command might not route changes on the attribute itself.
When Routing Attributes, using the `routeAttrToSessionLayer` example above,
the function used to register would be similar - only using the `attribute` argument:

```Python
import mayaUsd.lib
mayaUsd.lib.registerEditRouter('attribute', routeAttrToSessionLayer)
```

The function to turn off an edit router for a given operation is called
`restoreDefaultEditRouter`. It restores the default edit router for that
Expand Down

0 comments on commit 2f3e6f2

Please sign in to comment.