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

MAYA-106892 - Export and import color space information on file nodes #862

Merged
merged 2 commits into from
Oct 22, 2020

Conversation

JGamache-autodesk
Copy link
Collaborator

On export, if the color space of a file node was set (differs from the global rule) then we export it as a colorSpace metadata on the file UsdShadeInput.
On import, if there is a colorSpace on the USD file input, we set it in the Maya file node.

On export, if the color space of a file node was set (differs from the global rule) then we export it as a colorSpace metadata on the file UsdShadeInput.
On import, if there is a colorSpace on the USD file input, we set it in the Maya file node.
Copy link
Contributor

@mattyjams mattyjams left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Comment on lines 226 to 230
MString colorRuleCmd;
colorRuleCmd.format(
"colorManagementFileRules -evaluate \"^1s\";", fileTextureNamePlug.asString());
const MString colorSpaceByRule = MGlobal::executeCommandStringResult(colorRuleCmd);

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe move this closer to where we get the colorSpace plug, or even inside that if (status == MS::kSuccess) { block?

@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 22, 2020
@kxl-adsk kxl-adsk merged commit 2e807dd into dev Oct 22, 2020
@kxl-adsk kxl-adsk deleted the t_gamaj/MAYA-106892/save_file_color_space branch October 22, 2020 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants