-
Notifications
You must be signed in to change notification settings - Fork 202
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
custom compile of v0.6.0 : Layer Editor Window does not open or the Create Stage From File Menu Item #1005
Comments
@cfmoore007 I just synced back to the dev branch and was kicking off a build against the latest Maya PR, so I'll try to see if I can reproduce the problem. We did add some string resource handling in a recent change. The plug-in isn't localized at the moment (English only) but it's now set up to be able to at some point in the future. |
@cfmoore007 I downloaded the latest Maya beta + devkit and built the exact same SHA as you and can't reproduce a problem. I'm guessing you haven't changed anything about how you build the plug-in have you? And what's your .mod file look like, any difference between what you're using for your build vs. the installed one? |
Nothing seems out of the ordinary here : F:\Repos\maya-usd>git status F:\Repos\maya-usd>python build.py --build-location F:\APPLICATIONS\MayaUSD\v0.6.0\build --install-location F:\APPLICATIONS\MayaUSD\v0.6.0 --maya-location F:\APPLICATIONS\Autodesk\Maya2021 --pxrusd-location %USD_INSTALL_ROOT% --devkit-location F:\APPLICATIONS\Autodesk\Maya2021\devkit F:\Repos\maya-usd
Success MayaUSD build and install !!!! Mod File :
|
Getting same error message on 2019.3. Calling "Stage From File" Option box results in an errors: // Error: file: C:/Program Files/Autodesk/Maya2019/scripts/others/getPluginResource.mel line 66: Plug-in resource lookup failed, resource ("mayaUsdPlugin","kCancel") is not registered and // Error: file: C:/tmp/usd/maya-2019-0.6.0-msvc2017/plugin/adsk/scripts/mayaUsd_createStageFromFile.mel line 135: Object's name 'createStageFromExistingOptions' is not unique. // |
In the file mayaUSDRegisterStrings.mel, can you try to add register("kCreate", "Create"); in the procedure mayaUSDRegisterStrings() |
@spinell-adsk - thanks! That worked for the stage creation menu item. Now the layer editor just will not launch. |
I'm not sure what is going wrong with your's custom build. |
We're seeing the same issue here. Will try the fix mentioned above, but just thought I'd add us as a +1 |
With the workaround mentioned above, it's possible to create the USD stage now. |
It doesn't look like we build with that. A few questions:
I'll try a build tomorrow with these and see how things go. |
Unfortunately the Qt bundled in the devkit is not fully setup to use from cmake. It is missing some files. For now you must download your own copy of Qt to use. Ideally one that matches the Qt in the Maya version you are building for. For that info please see build.md. For the latest Maya PRs the version is either 5.15.1 or 5.15.2. If you use build.py then look at the flag: As you've seen all this does is set the cmake variable QT_LOCATION. If you are using the Maya PR, then you should also set the cmake variable QT_VERSION. If everything goes well and it correctly finds Qt, you will see the message "Building with Qt features enabled." in your build log. |
Thanks, @seando-adsk . It would help us understand better to know whether it's just a build time dependency, or if it's something we need to also distribute to our internal users. Which in turn would possibly require different approval processes internally. |
If you try and use the cmake find_package(Qt), the biggest problem is that the Qt cmake have references to the debug Qt libs which are not part of the devkit. Another one is that on Windows the Qt .dll files are not in the devkit which are also referenced by the the Qt cmake files. I'll bring it up internally to see what can be done. |
Thanks. I can confirm after using the QT Installer ( choosing QT 5.12.10 ), and adding the --qt-location option worked. I can also confirm, that I no longer need to edit the mayaUSDRegisterStrings.mel file with kCreate/kCancel as reporter in the earlier work-around.
|
That is good to know. Thanks. Are you able to open and use the Layer Editor now? I think that we should probably not register or include the layer editor commands when Qt is not found because without Qt the layer editor itself won't be compiled. I'll bring that up internally. |
Yes. Layer Editor also works. |
With pull-request #1037 being merged this issue should not happen anymore. If the Layer Editor (LE) is not compiled (i.e. not Qt is found) we no longer register the command to open the LE and we no longer add any menu items to open the LE. |
@cfmoore007 Please validate and close this issue. |
Confirmed, this was fixed with installing QT ( via the downloadable installer ). I chose version 5.12.10 and set the --qt-location variable to point to the installed location. With those steps, the layer editor now works as intended. Closing issue. Thanks! |
Describe the bug
Compiling v0.6.0 or dev@c411bab9 is having menu items issue for me.
In particular, the Create->Universal Scene Description->Create Stage From File option results in an error : // Error: file: F:/APPLICATIONS/Autodesk/Maya2021/scripts/others/getPluginResource.mel line 66: Plug-in resource lookup failed, resource ("mayaUsdPlugin","kCreate") is not registered
Secondly, the Layer Editor does not open, but does not complain about anything ( i.e : no errors or warnings ). I tested this by using the 'Create Stage From New Layer' option. I verified that the layerEditor is under the lib/usd/ui/ directory.
Finally, I tried the download of v0.6.0 using the installer. This version works fine. The issue seems limited to my custom build. The last working build I tried was dev@37ea8e0.
Steps to reproduce
Steps to reproduce the behavior:
( Create Stage From File )
( Missing Layer Editor )
Expected behavior
The menu items work. They did prior to this build
Attachments
If applicable, add screenshots, sample files, etc to help explain your problem.
Specs (if applicable):
Additional context
N/A
The text was updated successfully, but these errors were encountered: