Hi there I am trying to move an object around the XYZ axis using the int sliders. I am doing it for a school assignment and I have to make a window that allows you to move objects around. My code so far:
import maya.cmds as cmds
cmds.window()
cmds.columnLayout( adjustableColumn=True )
cmds.intSlider(min=-360, max=360, value=0, step=1, dc = cmds.move(x=True))
cmds.showWindow()
I keep getting this error message
# Error: line 1: TypeError: file <maya console> line 5: Invalid arguments for flag 'dc'. Expected string or function, got NoneType #
Any idea what’s causing this? or how to fix it?
If you select your cube and just on the mel command line type “move -x”, nothing happens either, right? But if you type “move 1 -x” the cube will move 1 unit on the +x axis.