Quote from
RichardF on 9. October 2020, 1:29
Hey Haseeb,
pcore is defined in the .nuke/menu.py. If you are loading your tools from the same file or the script editor you can simply do something like this in the menu.py:
import myTool
myTool.init(pcore)
Alternatively you could create a new PrismCore instance in your tool (But I'd prefer the first way).
import PrismCore
pcore = PrismCore.PrismCore(app="Nuke")
Hey Haseeb,
pcore is defined in the .nuke/menu.py. If you are loading your tools from the same file or the script editor you can simply do something like this in the menu.py:
import myTool
myTool.init(pcore)
Alternatively you could create a new PrismCore instance in your tool (But I'd prefer the first way).
import PrismCore
pcore = PrismCore.PrismCore(app="Nuke")