-
Notifications
You must be signed in to change notification settings - Fork 34
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
not able to find scenegraph_rc #1
Comments
You could try changing the import statement to this:
|
sorry too keep bother , but is that something that is on the ui file ? thx |
The The ui files here are compiled on the fly with resources stored in a different directory, if you're looking to compile your own interfaces, I'd suggest starting with one that's saved with the icons and arc in the same directory. |
I am no where near been able to do my own thing, I am trying to learn from you. Thank for your help ! M. |
Hi Michael so I pased the rc issue I was having , thank you for the help, but now when I run this from SceneGraph import scenegraph I get this [SceneGraph]: INFO: initializing SceneGraph 0.69.0... Thanks again for the help. |
Where are you running this from?? You can't import a Qt UI unless you're running inside a Qt application (maya, nuke, etc). That's what the launch scripts in /bin are for. |
I was running it from the python ide, I though that the first option was a standalone UI. from SceneGraph import scenegraph Error: ImportError: file /mnt/extra/code/SceneGraph/core/init.py line 2: cannot import name loggerany clue sorry for my r-tardness :) |
For maya, you'll need to import the maya wrapper: from SceneGraph import scenegraph_maya
scenegraph_maya.main() Be forewarned, if you're using the newest maya 2017, it won't work as is currently. Autodesk is using a new PySide version in the newest maya, so you'll need to do some reworking of the maya wrapper because the update broke a lot of things. I wish I had time to look at it right now, but feel free to fork it :) For standalone, you'll use call one of the launchers in The reason it is setup this way is because you need to run the application in a parent QApplication. In standalone, we create a default one, in maya, nuke etc., SceneGraph piggybacks on those applications as they are also QApplications. |
Hi
First of all thank you for the projects, I have always wanted to learn how to do a graph in pyside.
i am trying to lauch the code in standalone and after compiling the ui with pysideuic and execute it
it tells me that it cannot find the procedure screnegraph_rc which after a small digging I found is at the end of the code of the copiled ui file.
Can you help me making this work ?
Thnak you in advance.
M.
The text was updated successfully, but these errors were encountered: