Thanks Nathan. I added the J_Ops lines to my init.py and menu.py files

#  init.py
#  J_Ops
#
#  Created by Jack Binks on 14/02/2010.
#  Copyright (c) 2010 Jack Binks. All rights reserved.
import sys, nuke

for path in nuke.pluginPath():
    if os.path.exists(path+"/J_Ops/py"):
        sys.path.append(path+"/J_Ops/py")
    if os.path.exists(path+"/../J_Ops/py"):
        sys.path.append(path+"/py")
    if os.path.exists(path+"/../J_Ops/ndk"):
        nuke.pluginAddPath(path+"/ndk")
    if os.path.exists(path+"/../J_Ops/icons"):
        nuke.pluginAddPath(path+"/icons")


#  menu.py
#  J_Ops
#
#  Created by Jack Binks on 07/01/2010.
#  Copyright (c) 2010 Jack Binks. All rights reserved.
import nuke
import os.path
import J_Ops

toolbar = nuke.menu("Nodes")
m = toolbar.addMenu("J_Ops", "J_Ops.png")
#n = m.addMenu("Colour")
n = m
n.addCommand("J_3Way", "J_Ops.createNode(\"J_3Way\")", "", "J_3Way.png")
n.addCommand("J_GeoManager", "J_Ops.createNode(\"J_GeoManager\")", "",
"J_GeoManager.png")
n.addCommand("J_GotSomeID", "J_Ops.createNode(\"J_GotSomeID\")", "",
"J_GotSomeID.png")
n.addCommand("J_MergeHDR", "J_Ops.createNode(\"J_MergeHDR\")", "",
"J_MergeHDR.png")
n.addCommand("J_Scopes", "J_Ops.createNode(\"J_Scopes\")", "",
"J_Scopes.png")
n.addCommand("J_ZKeyer", "J_Ops.createNode(\"J_ZKeyer\")", "",
"J_ZKeyer.png")
n.addCommand("J_ZMaths", "J_Ops.createNode(\"J_ZMaths\")", "",
"J_Zmaths.png")
n.addCommand("J_Ops Help", "J_Ops.launchHelp()", "", "J_Ops_Help.png")

which is what I think I'm supposed to do, but no doubt I could be doing it
wrong. Can the init.py and menu.py files live in our central location as
well? I presume they can. The J_Ops tools are visible in the menu, but I get
the error when I use them.

Something else I need to do?

On Wed, Oct 12, 2011 at 11:56 AM, Nathan Rusch <[email protected]>wrote:

>   Well, unless you have something that is adding the appropriate J_Ops
> subdirectories to your plugin path as well, Nuke isn’t going to know about
> them.
>
> -Nathan
>
>
>  *From:* Gary Jaeger <[email protected]>
> *Sent:* Wednesday, October 12, 2011 10:27 AM
> *To:* Nuke user discussion <[email protected]>
> *Subject:* [Nuke-users] Question about central plug-in/scripts
>
> So we've decided to try to tackle this (again. we usually hit a wall and
> give up. Not this time!). I think it's basically working, and if I run
>
>   $NUKE_PATH
> /Volumes/nuke_tools/
>
> which is correct. But some things work and some don't. RSMB works fine. But
> for instance I can't get J_Ops to work:
>
>
> Node creation failed with runtime error.
>         This is usually down to one of the following:
>
>         1) You tried to create a node not currently
>         in the NUKE_PATH.
>
>         2) The binary of the plug-in found is not
>         compatible with the version, or 32/64bit-
>         ness of Nuke/OS. Check you have the
>         right version installed.
>
>
>
> I know the binary is right, since if I do a default install of the same
> binary it works. Similarly GenArts Sapphire doesn't work. So I'm wondering
> what else we might be missing. Bear in mind that setting "environment
> variables" is new territory for us. Thanks!
>
> --
>  Gary Jaeger // Core Studio
> 249 Princeton Avenue
> Half Moon Bay, CA 94019
> 650 728 7060
> http://corestudio.com
>
>
> ------------------------------
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>



-- 
Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to