Add custom actions to the layer context menu in the USD Layer Editor? #4212
Unanswered
KristofferHelander
asked this question in
Q&A
Replies: 1 comment
-
|
Unfortunately we don't have any callback method to hook into that context menu. But as you asked you could probably hijack it. Have a look at where its called from and what its calling. The code is in our repo here. The easiest thing to would be for you to modify the Sean |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to add my own actions (using Python) to the right-click context menu of a USD layer in the USD Layer Editor, to call my own functions that uses that layer as a parameter.
I found this topic to access the USD Layer Editor and modify the action of the Save button.
#3666
But I haven't been able to work out how to highjack the right-click context menu of an individual layer, and how to get the reference to the layer to send it as a parameter to the function being called from the custom menu action.
Is this possible? If so, how? :)
Beta Was this translation helpful? Give feedback.
All reactions