LuizElias
02-18-2011, 05:15 PM
Hi,
Im trying to do a scriptCtx using python but the "finalCommandScript" flag is not calling the comand I want to use, does anyone knows what is wrong? here is the code:
import maya.cmds as cmds
def printer():
print "aaaa"
if cmds.scriptCtx("printer",exists=1):
cmds.deleteUI("printer")
cmds.scriptCtx(
"printer",
totalSelectionSets = 1,
title = "printer",
i1 = "blendSurface.xpm",
toolCursorType = "create",
setAutoToggleSelection = 1,
setSelectionCount = 2,
finalCommandScript = ("printer()")
)
cmds.setToolTo("printer")
thanks!
Im trying to do a scriptCtx using python but the "finalCommandScript" flag is not calling the comand I want to use, does anyone knows what is wrong? here is the code:
import maya.cmds as cmds
def printer():
print "aaaa"
if cmds.scriptCtx("printer",exists=1):
cmds.deleteUI("printer")
cmds.scriptCtx(
"printer",
totalSelectionSets = 1,
title = "printer",
i1 = "blendSurface.xpm",
toolCursorType = "create",
setAutoToggleSelection = 1,
setSelectionCount = 2,
finalCommandScript = ("printer()")
)
cmds.setToolTo("printer")
thanks!
