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-1625 - Certain USD light shapes disappear if user try to edit as maya data. #4007

Closed

Conversation

samuelliu-adsk
Copy link
Collaborator

No description provided.

@samuelliu-adsk samuelliu-adsk force-pushed the samuelliu-adsk/EMSUSD-1625/light_edit_as_maya branch from ab0db30 to 90845c1 Compare November 20, 2024 02:55
return;
}

if (lightShape == 1) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note sure if we use an enum than the number 1 is better. It is an arbitrary number either way...

@@ -222,4 +223,114 @@ void PxrUsdTranslators_AreaLightWriter::Write(const UsdTimeCode& usdTime)
usdTime, primSchema, lightFn, _GetSparseValueWriter());
}

#ifdef UFE_VOLUME_LIGHTS_SUPPORT
PXRUSDMAYA_REGISTER_WRITER(volumeLight, PxrUsdTranslators_VolumeLightWriter);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

One major problem I was struggling is here. As shown on L179, we should register a schema here but one Maya light type can only map to one usd type. Here there will be three possible schemas to register for volumeLight so I didn't register at the time. After playing around I dont see a major issue caused by this but I think we better address this.

Copy link
Collaborator

@AramAzhari-adsk AramAzhari-adsk left a comment

Choose a reason for hiding this comment

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

As discussed, please check that:

  • Each of the recently added lights gizmos actually shade similarly when they are a USD light and when they are being edited as a Maya light.
  • If any of them do not have a matching light shading, please block / remove the option of being able to Edit As Maya for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants