You don’t really need to link anything... just wait until the user clicks OK
and then format your project name into a path.
# Example (assuming PythonPanel subclass)
project = projectEnum.value().lower()
nuke.pluginAddPath('./projects/%s' % project)
-Nathan
From: adam jones
Sent: Sunday, December 02, 2012 3:19 PM
To: Nuke user discussion
Subject: Re: [Nuke-users] python panel pulldown and nuke plugin paths
hey
the problem I am having is linking the project selected in the pulldown menu to
the plugin path I want to add.
i.e. select Project_01 in pull down to add ( './projects/project_01') and so
on..
new to python in nuke
-adam
On Dec 03, 2012, at 09:13 AM, Nathan Rusch <[email protected]> wrote:
So then if the user selects a project, you should have all the information
you need to add your plugin paths, no?
What’s the actual problem you’re running into?
-Nathan
From: adam jones
Sent: Sunday, December 02, 2012 1:56 PM
To: Nuke user discussion
Subject: Re: [Nuke-users] python panel pulldown and nuke plugin paths
Hey all
I have a panel open on start up prior to nuke loading.
The idea is to add plugin paths that are project and user specific.
-adam
On Dec 03, 2012, at 08:31 AM, Nathan Rusch <[email protected]> wrote:
Can you send some code to give people a better idea of what you're
currently
trying? Also, are you trying to add paths to the plugin path when the user
changes a pulldown? Or when they change a pulldown and then click another
button or something?
-Nathan
-----Original Message-----
From: adam jones
Sent: Saturday, December 01, 2012 10:18 PM
To: Nuke user discussion
Subject: [Nuke-users] python panel pulldown and nuke plugin paths
hey all
I am trying to define / add plugin paths on startup using some pulldown
menus, I have got ever thing working aside but am not having to luck
actually getting a particular pull down menu choice to create the plugin
path / select the desired plugin path.
I recall seeing a tut where some thing similar done but rather that plugin
paths it was to set favourite in the file dialog.
any help to tuts or sample code would be awesome, sample code better as i
seem to learn better that way.
-adam
_______________________________________________
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
------------------------------------------------------------------------------
_______________________________________________
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
--------------------------------------------------------------------------------
_______________________________________________
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