Nuke Indy just won't work....
Quote from BrianVowles on 3. October 2021, 21:20Hey guys,
My first post here, really looking forward to getting into Prism for personal projects. I started at a new studio a few weeks ago and they are using it for some internal stuff and I have really liked it so far. I have a side project with about 40 shots to do and I thought this would be a nice chance to try Prism for my own work....
Unfortunately, I can't seem to get my Nuke Indy to work.... I have followed the advice in the other posts about editing the Init.py and Menu.py files and I just can't get it to work. If I tweak those at all Nuke just won't launch...... Any thoughts would be awesome......
Hey guys,
My first post here, really looking forward to getting into Prism for personal projects. I started at a new studio a few weeks ago and they are using it for some internal stuff and I have really liked it so far. I have a side project with about 40 shots to do and I thought this would be a nice chance to try Prism for my own work....
Unfortunately, I can't seem to get my Nuke Indy to work.... I have followed the advice in the other posts about editing the Init.py and Menu.py files and I just can't get it to work. If I tweak those at all Nuke just won't launch...... Any thoughts would be awesome......
Quote from RichardF on 5. October 2021, 10:14Hey @brianvowles
Just for reference, I assume you were following the instructions in this post: https://prism-pipeline.com/forum/topic/nuke-12-2v3-indie-prism-doesnt-start-temporary-fix-found/#postid-3017
If Nuke won't start after editing the file then there is probably a mistake in the formatting of the file. Can you open it in a text editor and post a screenshot here so that I can check if there is a formatting issue?
Hey @brianvowles
Just for reference, I assume you were following the instructions in this post: https://prism-pipeline.com/forum/topic/nuke-12-2v3-indie-prism-doesnt-start-temporary-fix-found/#postid-3017
If Nuke won't start after editing the file then there is probably a mistake in the formatting of the file. Can you open it in a text editor and post a screenshot here so that I can check if there is a formatting issue?
Quote from BrianVowles on 5. October 2021, 22:44Hey Richard,
Thanks for getting back to me...... that was the solution I tried but I didn't have any luck. I tried again just now with fresh eyes but no dice.
Any help would be awesome....
Thanks.
Hey Richard,
Thanks for getting back to me...... that was the solution I tried but I didn't have any luck. I tried again just now with fresh eyes but no dice.
Any help would be awesome....
Thanks.
Uploaded files:- You need to login to have access to uploads.
Quote from RichardF on 7. October 2021, 13:35The explanation was probably not very clear on how to remove the indents. You only have to remove one indent per line. If there were more than one in a line, you need to keep them and only remove one of them.
So the menu.py has to look like this:
# >>>PrismStart import nuke if "pcore" in locals(): nuke.message("Prism is loaded multiple times. This can cause unexpected errors. Please clean this file from all Prism related content:\n\n%s\n\nYou can add a new Prism integration through the Prism Settings dialog" % __file__) else: import os import sys prismRoot = os.getenv("PRISM_ROOT") if not prismRoot: prismRoot = PRISMROOT scriptDir = os.path.join(prismRoot, "Scripts") if scriptDir not in sys.path: sys.path.append(scriptDir) import PrismCore pcore = PrismCore.PrismCore(app="Nuke") # <<<PrismEndand the init.py needs to look like this:
# >>>PrismStart import nuke if "pcore" in locals(): nuke.message("Prism is loaded multiple times. This can cause unexpected errors. Please clean this file from all Prism related content:\n\n%s\n\nYou can add a new Prism integration through the Prism Settings dialog" % __file__) else: import os import sys try: from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import * except: from PySide.QtCore import * from PySide.QtGui import * prismRoot = os.getenv("PRISM_ROOT") if not prismRoot: prismRoot = PRISMROOT scriptDir = os.path.join(prismRoot, "Scripts") if scriptDir not in sys.path: sys.path.append(scriptDir) qapp = QApplication.instance() if not qapp: qapp = QApplication(sys.argv) if isinstance(qapp, QCoreApplication): print("a QCoreApplication exists. failed to load Prism") else: print(qapp) import PrismCore pcore = PrismCore.PrismCore(app="Nuke", prismArgs=["noUI"]) # <<<PrismEnd
The explanation was probably not very clear on how to remove the indents. You only have to remove one indent per line. If there were more than one in a line, you need to keep them and only remove one of them.
So the menu.py has to look like this:
# >>>PrismStart import nuke if "pcore" in locals(): nuke.message("Prism is loaded multiple times. This can cause unexpected errors. Please clean this file from all Prism related content:\n\n%s\n\nYou can add a new Prism integration through the Prism Settings dialog" % __file__) else: import os import sys prismRoot = os.getenv("PRISM_ROOT") if not prismRoot: prismRoot = PRISMROOT scriptDir = os.path.join(prismRoot, "Scripts") if scriptDir not in sys.path: sys.path.append(scriptDir) import PrismCore pcore = PrismCore.PrismCore(app="Nuke") # <<<PrismEnd
and the init.py needs to look like this:
# >>>PrismStart import nuke if "pcore" in locals(): nuke.message("Prism is loaded multiple times. This can cause unexpected errors. Please clean this file from all Prism related content:\n\n%s\n\nYou can add a new Prism integration through the Prism Settings dialog" % __file__) else: import os import sys try: from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import * except: from PySide.QtCore import * from PySide.QtGui import * prismRoot = os.getenv("PRISM_ROOT") if not prismRoot: prismRoot = PRISMROOT scriptDir = os.path.join(prismRoot, "Scripts") if scriptDir not in sys.path: sys.path.append(scriptDir) qapp = QApplication.instance() if not qapp: qapp = QApplication(sys.argv) if isinstance(qapp, QCoreApplication): print("a QCoreApplication exists. failed to load Prism") else: print(qapp) import PrismCore pcore = PrismCore.PrismCore(app="Nuke", prismArgs=["noUI"]) # <<<PrismEnd
Quote from BrianVowles on 15. October 2021, 6:23Hey Richard,
Sorry it took so long to get back to you,...... I finally had a chance to try the Nuke Indy stuff just now and I still can't get it to work. I copied and pasted the scripts you sent. I double checked then reading them line by line...... I dunno..........
.nuke/init.py : error interpreting this plugin
here's a copy of my init.py...... maybe you can see a missed space or soemhtign..........
thanks
Hey Richard,
Sorry it took so long to get back to you,...... I finally had a chance to try the Nuke Indy stuff just now and I still can't get it to work. I copied and pasted the scripts you sent. I double checked then reading them line by line...... I dunno..........
.nuke/init.py : error interpreting this plugin
here's a copy of my init.py...... maybe you can see a missed space or soemhtign..........
thanks
Uploaded files:
- You need to login to have access to uploads.
Quote from RichardF on 19. October 2021, 12:15Hey Brian,
the indentations are correct. In line 20 of the init.py and line 12 of the menu.py you have to replace PRISMROOT with the path to your Prism installation for example like this:
prismRoot = "C:/Prism"
Hey Brian,
the indentations are correct. In line 20 of the init.py and line 12 of the menu.py you have to replace PRISMROOT with the path to your Prism installation for example like this:
prismRoot = "C:/Prism"
Quote from BrianVowles on 20. October 2021, 4:59Thanks Richard,
I tried again but still no luck..... I really wish I understood code because now it's just getting embarrassing. The frustrating thing is that I know it works because I have been using it at work..... and it's awesome. Is there any chance it's a Mac thing?
I have Prism installed in my Applications folder........ so when I copied the path I got this..... /Applications/Prism so I put that into the script where you said to and I still get that init.py error when I try to launch Nuke. here is another screen grab....... I'll get it one day.
Thanks Richard,
I tried again but still no luck..... I really wish I understood code because now it's just getting embarrassing. The frustrating thing is that I know it works because I have been using it at work..... and it's awesome. Is there any chance it's a Mac thing?
I have Prism installed in my Applications folder........ so when I copied the path I got this..... /Applications/Prism so I put that into the script where you said to and I still get that init.py error when I try to launch Nuke. here is another screen grab....... I'll get it one day.
Uploaded files:
- You need to login to have access to uploads.
Quote from RichardF on 3. November 2021, 10:37Hey @brianvowles,
sorry for the late reply. In your init.py you need to add one more indentation to line 20, similar how you did in menu.py.
Hey @brianvowles,
sorry for the late reply. In your init.py you need to add one more indentation to line 20, similar how you did in menu.py.
Quote from BrianVowles on 27. January 2022, 16:10Hey Richard....
it's been months since I had a chance to try out your suggestion and I finally got to it last night......Success!! thanks!
Hey Richard....
it's been months since I had a chance to try out your suggestion and I finally got to it last night......Success!! thanks!
Uploaded files:
- You need to login to have access to uploads.