Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMSUSD-101 Override primWriter #3189

Merged
merged 12 commits into from
Jul 28, 2023

Conversation

samuelliu-adsk
Copy link
Collaborator

@samuelliu-adsk samuelliu-adsk commented Jun 29, 2023

  • Add CanExport function to primWriter for overriding default primWriter
  • Overload the Register function for backward support
  • Add Poke function for cases when only wants to check for plugin register but not really find a primWriter

@samuelliu-adsk samuelliu-adsk force-pushed the samuelliu-adsk/EMSUSD-101/override-primwriter branch from 3a6abe8 to fa18274 Compare June 29, 2023 20:25
@samuelliu-adsk samuelliu-adsk marked this pull request as ready for review June 29, 2023 20:30
@samuelliu-adsk samuelliu-adsk added adsk Related to Autodesk plugin import-export Related to Import and/or Export labels Jun 29, 2023
AramAzhari-adsk
AramAzhari-adsk previously approved these changes Jul 5, 2023
seando-adsk
seando-adsk previously approved these changes Jul 11, 2023
Copy link
Collaborator

@seando-adsk seando-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as with the Reader PR. I'm not familiar with this code so I'll let the other code reviewers provided the feedback.

int _index;
};

// typedef std::map<std::string, UsdMayaPrimWriterRegistry::WriterFactoryFn> _Registry;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this typedef in comment was left-over and probably should be removed.

{
TfRegistryManager::GetInstance().SubscribeTo<UsdMayaPrimWriterRegistry>();

// unfortunately, usdTypeName is diff from the tfTypeName which we use to
// register. do the conversion here.
WriterFactoryFn ret = nullptr;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDK what that erased comment about usdTypeName vs tfTypeName was about... I guess it is now irrelevant?

Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few questions and suggestions, otherwise looks great.

@samuelliu-adsk samuelliu-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 26, 2023
@seando-adsk seando-adsk merged commit ae4cbf7 into dev Jul 28, 2023
12 checks passed
@seando-adsk seando-adsk deleted the samuelliu-adsk/EMSUSD-101/override-primwriter branch July 28, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin import-export Related to Import and/or Export ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants