-
Notifications
You must be signed in to change notification settings - Fork 203
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-751 - UsdUfe: Move Ufe::Attributes interface implementation #3737
Conversation
* Tokens moved: generic and some of the meta data. * Functions moved: * prettifyName (python wrapper) * isConnected() * canRemoveSrcProperty() / canRemoveDstProperty() * usdTypeToUfe() / ufeTypeToUsd() * usdAttrFromUfeAttr() / attrFromUfeAttrInfo() * vtValueFromString() * splitString() * Classes moved: * UsdAttributesHandler/UsdAttributes/UsdAttribute/UsdAttributeHolder * UsdShaderAttributeDef/UsdShaderAttributeHolder/ * UsdAddAttributeCommand/UsdRemoveAttributeCommand/UsdRenameAttributeCommand * New (optional) DCC message (info/warning/error) functions. * Removed Maya setting isAttributeLocked function as a default implementation exists in UsdUfe. * Moved code from UsdShaderNodeDefHandler::usdDefinition() to UsdUfe::usdShaderNodeFromSceneItem(). * Removed mayaUsd inline prettifyName().
* Removed mayaUsd inline SanitizeName().
* Moved 'using namespace UsdUfe' to mayaUsd to make sure that UsdUfe is properly using namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deboisj / @pierrebai-adsk I'll assign both of you as code reviewers. No rush to review. I'm off for the next of this week.
@@ -120,6 +118,10 @@ void mayaStopWaitCursor() { MGlobal::executeCommand("waitCursor -state 0"); } | |||
// Note: MayaUsd::ufe::getStage takes two parameters, so wrap it in a function taking only one. | |||
PXR_NS::UsdStageWeakPtr mayaGetStage(const Ufe::Path& path) { return MayaUsd::ufe::getStage(path); } | |||
|
|||
void displayInfoMessage(const std::string& msg) { MGlobal::displayInfo(msg.c_str()); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this going to the maya listener? (the thing showing the red text bottom right)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes except being info it won't be red
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prints to the Maya script editor and the command line. Three types of message: info, warning & error (same as USD).
} | ||
} | ||
|
||
namespace { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless specified i assumed all that is only moved / nothing new
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes correct. Very little new code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, didnt have much to say. Hopefully there is good test coverage! Thanks alot!
33f4802
* Build fixes because of merging latest dev. * Fixed pxr plugin when building without tests.
@deboisj / @pierrebai-adsk I had to merge in latest dev and then add a few build fixes (related to new Ufe method |
@pierrebai-adsk Sorry had to merge in latest dev again since I merged my other clipboard PR. This should be the last time. I hope to merge this in on Thu. |
* Extra Linux/OSX build break fix.
@pierrebai-adsk Sorry one last commit to fix Linux/OSX build issues. It was because I removed the |
EMSUSD-751 - UsdUfe: Move Ufe::Attributes interface implementation
EMSUSD-751 - UsdUfe: Move Ufe::Attributes interface implementation
EMSUSD-751 - UsdUfe: Move Ufe::Attributes interface implementation