Hello ,
first of all, thanks for the help! unfortunatly it didn’t seem to work.
at first i just ran the script without your added line, just for a test. and yeah a neww error occured:
if type(newName) is list:
newName = newName[0]
cmds.file( rename=newName )
cmds.file(save = True, type = “mayaBinary”, force = True, prompt = True)
print “File Saved as:”, newName
// File read in 0.12 seconds. //
// Error: file: C:/Program Files/Autodesk/Maya2017/scripts/startup/cutCopyPaste.mel line 75: Error reading file. //
[u’Mannequin:Mannequin_ExportRN’, u’Mannequin:sharedReferenceNode’, u’MannequinRN’]
Mannequin:Mannequin_Export
Mannequin:sharedReferenceNode
Mannequin
[u’Mannequin’]
[u’Mannequin’]
[u’Mannequin:Mannequin_ExportRN’, u’Mannequin:sharedReferenceNode’, u’MannequinRN’]
Mannequin:Mannequin_Export
Mannequin:sharedReferenceNode
Mannequin
[u’Mannequin’]
[u’Mannequin:Mannequin_ExportRN’, u’Mannequin:sharedReferenceNode’, u’MannequinRN’]
Mannequin:Mannequin_Export
Mannequin:sharedReferenceNode
Mannequin
[u’Mannequin’]
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
Warning: The -bs/-borderStyle flag is obsolete and should not be used.
[u’Mannequin:Mannequin_ExportRN’, u’Mannequin:sharedReferenceNode’, u’MannequinRN’]
Mannequin:Mannequin_Export
Mannequin:sharedReferenceNode
Mannequin
[u’Mannequin’]
[u’Mannequin:Mannequin_ExportRN’, u’Mannequin:sharedReferenceNode’, u’MannequinRN’]
Mannequin:Mannequin_Export
Mannequin:sharedReferenceNode
Mannequin
[u’Mannequin’]
Warning: Invalid viewport for isolate select command
so and after that, i just tried the script with the added lline but nothing happend. i just ran it like this:
if type(newName) is list:
newName = cmds.file(q = True, sceneName = True)
newName = newName[0]
cmds.file( rename=newName )
cmds.file(save = True, type = “mayaBinary”, force = True, prompt = True)
print “File Saved as:”, newName
but it didnt executed something.