Permalink
Browse files

Added Render item to Nuke menu

  • Loading branch information...
1 parent 6f57205 commit 1531c1ecc14fc09fd68347667101a16e0414c5f4 @drdogbiscuit committed Feb 19, 2012
Showing with 11 additions and 5 deletions.
  1. +1 −1 src/ueCommon/Render.py
  2. +1 −1 src/ueMaya/Export.py
  3. +1 −1 src/ueNuke/Render.py
  4. +8 −2 template/proj/etc/nuke/menu.py
View
@@ -42,7 +42,7 @@ def __init__(self, parent=None):
renderFromSorted = sorted(renderFrom)
for rf in renderFromSorted:
self.renderFromList.addItem(QtGui.QListWidgetItem(rf))
- if len(renderFrom) > 0:
+ if len(renderFrom) > 0 and not currentRender == None:
self.renderFromList.setCurrentItem(self.renderFromList.item(
renderFromSorted.index(currentRender)))
render[1] = [str(self.renderFromList.currentItem().text())]
View
@@ -11,7 +11,7 @@
import ueCommon.Save as ueCommonSave
__exportTypes__ = {
- "Selected": ("selected", ["cam", "lgt", "geo", "ms"]),
+ "Selected": ("selected", ["cam", "lgt", "geo", "mrs", "ms"]),
"Camera": ("cameras", ["cam"]),
"Light": ("lights", ["lgt"]),
"Geometry": ("geometry", ["geo"]),
View
@@ -12,7 +12,7 @@
import ueCommon.Render as ueCommonRender
import ueCommon.Save as ueCommonSave
-def ueRender(currentNode):
+def ueRender(currentNode=None):
p = nukescripts.registerWidgetAsPanel("ueCommonRender.Render", "ueRender",
"ue.panel.ueRender", create=True)
ueCommonRender.setRenderFrom(getWriteNodeList())
@@ -4,6 +4,7 @@
import ueNuke.Save as ueNukeSave
import ueNuke.Open as ueNukeOpen
import ueNuke.Read as ueNukeRead
+import ueNuke.Render as ueNukeRender
import ueNuke.Load as ueNukeLoad
import ueNuke.Checker as ueNukeChecker
@@ -25,7 +26,9 @@ def ueChecker(show=False):
# and it 'saves' the info from then previous script.
# Un-registering and regstering the widget seems to do the trick.
nukescripts.unregisterPanel("ue.panel.ueChecker", None)
- ueCheckerPanel = nukescripts.registerWidgetAsPanel("ueNukeChecker.CheckerPanel", "ueChecker", "ue.panel.ueChecker", create=True)
+ ueCheckerPanel = nukescripts.registerWidgetAsPanel("ueNukeChecker.CheckerPanel",
+ "ueChecker", "ue.panel.ueChecker",
+ create=True)
if show:
ueCheckerPanel.show()
else:
@@ -56,12 +59,15 @@ def nukeChecker():
nuke.menu("Nuke").addCommand(ueMenu+"/-", "", "")
nuke.menu("Nuke").addCommand(ueMenu+"/ueRead", ueRead, "r")
nuke.menu("Nuke").addCommand(ueMenu+"/ueChecker", ueChecker)
+nuke.menu("Nuke").addCommand(ueMenu+"/-", "", "")
+nuke.menu("Nuke").addCommand(ueMenu+"/Render", "ueNukeRender.ueRender()")
+
nuke.menu("Node Graph").addCommand("ueRead", ueRead)
nuke.menu("Node Graph").addCommand("ueChecker", ueChecker)
# Set the standard read node shortcut to shift+r since we're
# overriding the r key above.
-nuke.menu("Nodes").addCommand("Image/Read", 'nukescripts.create_read()',
+nuke.menu("Nodes").addCommand("Image/Read", "nukescripts.create_read()",
"Shift+r", icon="Read.png")
# Favorites

0 comments on commit 1531c1e

Please sign in to comment.