I'm just starting to dig into python and thought I would start by making something small as a quick test. This is what I've written:
import maya.cmds as mc def long(): longName = mc.file(q=True, sceneName=True) print longName def short(): shortName = mc.file(q=True, sceneName=True, shortName=True) print shortName
I then saved this as a file called "joSceneName.py"
I then type this in the script editor:
and then type:
Now I thought this would work without a problem but unfortunately I get this error:
# Result: <function long at 0x1328F8B0> #
Any ideas as to what I've done wrong??