ade90054
07-16-2010, 02:35 PM
Hey all,
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:
import joSceneName
and then type:
joSceneName.long
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??
Cheers.
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:
import joSceneName
and then type:
joSceneName.long
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??
Cheers.
