`reload()` can definitely be useful, but keep in mind that it does not re-bind
external references to a module. If moduleA imports moduleB, running
`reload(moduleB)` will not update moduleA’s reference to it, so any calls
moduleA makes to objects in moduleB will still be using old code. In order to
update moduleA’s reference, you would need to reload it explicitly:
`reload(moduleA.moduleB)`.
-Nathan
From: Magno Borgo
Sent: Thursday, August 08, 2013 11:55 AM
To: Nuke user discussion
Subject: Re: [Nuke-users] sublime text
Something that I use here when coding/testing my python scripts is the python
reload() function. It will always import the latest modification saved to your
script file.
No need to copy/pasteback and forth and if you want you can even assign this to
a keyboard shortcut.
Something like this would work on the script editor:
nuke.pluginAddPath('/path/to/script/folder/') # need to run this just 1 time.
import yourscriptfile #need to run this just 1 time.
reload(yourscriptfile)
yourscriptfile.runthedesiredfunctionhere()
Ah, many thanks!
Will look into this.
// Fredrik
On Fri, Jul 26, 2013 at 6:05 PM, Deke Kincaid <[email protected]> wrote:
Pretty much what Sam said. Here’s the link.
https://github.com/Nvizible/NukeExternalControl
-----
Deke Kincaid
Creative Specialist
The Foundry
Mobile: (310) 883 4313
Tel: (310) 399 4555 - Fax: (310) 450 4516
The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
On Tue, Jul 23, 2013 at 6:14 AM, Sam Marrocco
<[email protected]> wrote:
On 7/23/2013 4:40 AM, Fredrik Averpil wrote:
I was wondering, does Nuke have a command port, similar to what Maya
has – enabling me to send code from my favourite editor to be executed inside
of Nuke (without having to copy-paste the code back and forth)?
I've been using a project called nukeExternalControl (GitHub) to
inter-app communicate between python and nuke. It isn't fast but seems like it
would probably do the job for you provided that Nuke's python interface allows
a "paste" into it's editor. It definitely can run python commands internally on
Nuke from as external interpreter. Internally it seems to use sockets.
sam marrocco | chief technical officer
ringside.cutters.picnic.moonlink
248 548 2500 w
248 910 3344 c
ringsidecreative.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
--
Magno Borgo
Certified Nuke Trainer
www.boundaryvfx.com
www.borgo.tv
Brasil:Curitiba:GMT= -3
--------------------------------------------------------------------------------
_______________________________________________
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