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
longName = mc.file(q=True, sceneName=True)
shortName = mc.file(q=True, sceneName=True, shortName=True)
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??