-
Notifications
You must be signed in to change notification settings - Fork 20
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
Patch for making sever.py work with Nuke10.x #10
base: master
Are you sure you want to change the base?
Conversation
Added a test for version and call object directly if nuke version is above 9.x. Not sure what (if any) issues this might cause, but sees to behave in my tool using this package. I've filed a bug report at The Foundry regarding calls to nuke.executeInMainThreadWithResult() not working the same way in Nuke10.x.
Hi apertrynet, In the zip attached:
the python command: Thank you for your help :) |
Hmmm.. I have to double check this when I get in to work tomorrow, but I seem to recall first having to run the server as one process and then connect to it with another. In my case I start one python thread with the server and another connects to it. PS! Make sure you have the NUKE_PATH and PYTHONPATH environment variables set to find the NukeExternalControl package and that you have a valid license as well. In |
I work with a trial version. So the terminal mode is not allowed :( C:\Program Files\Nuke11.1v4>Nuke11.1.exe -t C:\Program Files\Nuke11.1v4\plugins\nukeExternalControl\server.py
|
Ah, that might explain it then :) |
When i simply run nuke (not in terminal mode), the application takes into account the server.py in the \plugins\nukeExternalControl folder, doesn't it ? So, before your correction, when i run my script: set PYTHONPATH=C:/Python27/Lib;C:/Python27/DLLs;C:/Python27/Lib/lib-tk;C:/Program Files/Nuke11.1v4/plugins;C:/assembler/nuke & C:/Users/user/Documents/Assembler/documentation/use_case_basical/assembler/script/nuke/createNodeTest_begin.py I take the error in my terminal: C:\Program Files\Nuke11.1v4>set PYTHONPATH=C:/Python27/Lib;C:/Python27/DLLs;C:/Python27/Lib/lib-tk;C:/Program Files/Nuke11.1v4/plugins;C:/assembler/nu and the nuke terminal send this error too: File "C:/Program Files/Nuke11.1v4/plugins/nuke/executeInMain.py", line 19, in With a nuke version < 10, it works fine. Then, if i run the same test with your correction, the appli crash. So do you think running the test in terminal mode should bring some complementary informations ? Thank you very much for your help :) |
I think you still need to actively run the server from within Nuke GUI before calling the connection script unless you do so in init.py or menu.py.
I'm not exactly sure what you're saying here. Were you successful in running the NukeExternalControl in Nuke9.x? |
It works for me with the Nuke9.x. I already use it for different projects from few years. You're right, i've modify the menu.py according to the README too. My question "Are you agree with that case ?" was about the error type nuke send before your correction: File "C:/Program Files/Nuke11.1v4/plugins/nuke/executeInMain.py", line 19, in |
OK, then assume you have a valid license for Nuke9.x and that's why it works. |
Yes, i have a license for Nuke9.x |
I suspect so because you need a render license to run the second instance
(client)
…On Fri, Jun 15, 2018, 13:02 flecoq ***@***.***> wrote:
Yes, i have a license for Nuke9.x
So, you think it does no work on Nuke11.1v4 because i've just have a trial
version ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABFv4S7FGBlCNUBsIuKClEnj7r4ud7Akks5t85Q2gaJpZM4OA0Co>
.
|
All right. In this case, i will not use the v11.4 for the moment. I'm working on a pipeline project base on XML script for executing modelisation and rendering process on 3ds max, maya an nuke. I will show you a demo soon if your are interested :) |
Cool! If you send me something perhaps open a ticket in my repo so we don't bother the good people at Nvizible too much with off topic issues :) |
could you send me your repo link to post a ticket ? |
here's my repo |
As mentioned in your issue tracker I've been having trouble running this package in Nuke10.x. Some digging traced the issue to this part of the server code.
After using this for a while without issues and getting a "blessing" from The Foundry (like they can't see anything wrong with doing it this way) I thought I'd submit this pull request.
Here is a quote from The Foundry support on why
nuke.executeInMainThreadWithResult()
behaves differently in Nuke10.x: