Custom adaptor not triggering when exporting a skeleton with a self-generated API #2621
Unanswered
BeardedPlatypus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a question regarding exporting skeletons with a self-generated API, which I hope someone can help me with. I am completely new to Maya and USD scripting so I hope this is just a matter of me not having a complete understanding of the concepts involved.
Basically, I have the following (simplified) set up:
I will paste all the code at the bottom of this post
HelloWorldAPI
schemaHelloWorldAPI
SchemaApiAdaptor
registered to trigger on the combination of ajoint
maya object and theHelloWorldAPI
SchemaApiAdaptor
registered to trigger on the combination of ajoint
maya object and theHelloWorldAPI
Now I would expect that when I run the import statement, the importer adaptor would get triggered, and when I run the export statement on the data that was imported, the exporter adaptor would get triggered.
When running the code however, only the importer gets triggered, and the exporter is always ignored. I am curious what I am doing wrong, or how this could be solved.
For reference, I am using the 0.19 release with Maya 2022.
Edit: When trying to export the same
HelloWorldAPI
on a mesh, I don't have any problems, and the exporter would get properly called. So far I only have encountered this behaviour when dealing with skeletons/joints.I hope this clearly explains my question, if any additional information is required, I'd gladly provide it!
Python script
USD file with a skeleton with
HelloWorldAPI
skel.zip
Schema definition of the
HelloWorldAPI
schema.zip
Beta Was this translation helpful? Give feedback.
All reactions