Permalink
Browse files

Added instructions into the README

  • Loading branch information...
1 parent 8155470 commit ca0fdc7e9a3bf99186fc9f7463145e5dba7263e6 @HughMacdonald HughMacdonald committed Nov 29, 2010
Showing with 44 additions and 0 deletions.
  1. +44 −0 README
View
44 README
@@ -0,0 +1,44 @@
+Nuke External Control
+
+This allows you to call Nuke Python commands from outside Nuke
+
+
+Installation
+============
+
+Place nukeCommandServer.py somewhere in $NUKE_PATH
+Place nukeCommandClient.py somewhere in $PYTHONPATH
+
+Edit your Nuke menu.py and add the following lines:
+
+---------------------------
+import nukeCommandServer
+nukeCommandServer.nuke_command_server()
+---------------------------
+
+Usage
+=====
+
+To initialise the external end, run the following (while Nuke is running):
+
+---------------------------
+import nukeCommandClient
+conn = nukeCommandClient.NukeConnection()
+nuke = conn.nuke
+---------------------------
+
+From that point on, you can run anything that you would inside Nuke from outside:
+
+---------------------------
+for n in nuke.selectedNodes():
+ print n.name()
+ n['disable'].setValue(True)
+
+blur = nuke.createNode("Blur")
+---------------------------
+
+If you need to import a module inside Nuke, you can run:
+
+---------------------------
+nukescripts = conn.import_module("nukescripts")
+---------------------------

0 comments on commit ca0fdc7

Please sign in to comment.