Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exporting .ass stand in file not working

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
2816 Views, 4 Replies

Exporting .ass stand in file not working

Hi ive been trying all morning to get some objects exported to use as stand ins.  The files never show up in the folder im exporting to and this is the only line of code that is returned in the script editor.

 

# Error: line 1: UnicodeEncodeError: file C:\Program Files\Autodesk\Maya2020\bin\python27.zip\encodings\utf_8.py line 16: ascii #

 

Is there a fix for this?  Im in windows 10 and the scene is very simple.  Now boilded down to almost nothing with no history just to test.

 

Thanks

4 REPLIES 4
Message 2 of 5
Stephen.Blair
in reply to: Anonymous

That's the only thing in the script history? Not even the file command or the arnoldExportAss command.

 

Then what's the full path name of the ass file you want to export? Are there any special characters anywhere?



// Stephen Blair
// Arnold Renderer Support
Message 3 of 5
Anonymous
in reply to: Stephen.Blair

Heres a copy of the whole script editor of me opening maya, creating a cylinder, and then trying to export .ass file.  I also opened maya as administrator because if I dont there would be an error involving write permission of this type of file.  When running as administrator that error message goes away but it still doesn't create the actual file.

 

file -f -new;
// untitled //
commandPort -securityWarning -name commandportDefault;
onSetCurrentLayout "Maya Classic";
# Error: file: C:/Program Files/Autodesk/Maya2020/plug-ins/xgen/scripts/xgen.mel line 125: UnicodeEncodeError: file C:\Program Files\Autodesk\Maya2020\plug-ins\xgen\scripts\xgenm\xgGlobal.py line 183: ascii #
// Error: Unable to execute xgen.mel. //
// Warning: file: C:\Users\seald\Documents\maya\2020\prefs\filePathEditorRegistryPrefs.mel line 4: filePathEditor: Attribute 'aiImage.filename' is invalid or is not designated 'usedAsFilename'. //
// Warning: file: C:\Users\seald\Documents\maya\2020\prefs\filePathEditorRegistryPrefs.mel line 5: filePathEditor: Attribute 'aiPhotometricLight.aiFilename' is invalid or is not designated 'usedAsFilename'. //
// Warning: file: C:\Users\seald\Documents\maya\2020\prefs\filePathEditorRegistryPrefs.mel line 6: filePathEditor: Attribute 'aiStandIn.dso' is invalid or is not designated 'usedAsFilename'. //
// Warning: file: C:\Users\seald\Documents\maya\2020\prefs\filePathEditorRegistryPrefs.mel line 7: filePathEditor: Attribute 'aiVolume.filename' is invalid or is not designated 'usedAsFilename'. //
// AbcExport v1.0 using Alembic 1.7.5 (built Feb 6 2018 18:28:08)
evalDeferred "shaderBallRendererMenuUpdate";
// Warning: line 1: filePathEditor: Attribute 'aiStandIn.dso' and label 'Standin' have been saved already. //
// Warning: line 1: filePathEditor: Attribute 'aiVolume.filename' and label 'VDB' have been saved already. //
// Warning: line 1: filePathEditor: Attribute 'aiImage.filename' and label 'Image' have been saved already. //
// Warning: line 1: filePathEditor: Attribute 'aiPhotometricLight.aiFilename' and label 'IES' have been saved already. //
import arnold
// Successfully imported python module 'arnold'
import mtoa
// Successfully imported python module 'mtoa'
import mtoa.cmds.registerArnoldRenderer;mtoa.cmds.registerArnoldRenderer.registerArnoldRenderer()
// Successfully registered renderer 'arnold'
updateRenderOverride;
// Warning: file: C:/Program Files/Autodesk/Maya2020/scripts/startup/autoLoadPlugin.mel line 35: Loading plug-in "mtoa" has resulted in changes to the scene that may need to be saved. //
CreatePolygonCylinder;
polyCylinder -r 1 -h 2 -sx 20 -sy 1 -sz 1 -ax 0 1 0 -rcp 0 -cuv 3 -ch 1;
// pCylinder1 polyCylinder1 //
// Loading Bifrost version 2.0.3.0
// Bifrost: Loading library: Amino, from: Autodesk.
// Bifrost: Loading library: AminoMayaTranslation, from: Autodesk.
// Bifrost: Loading library: bif, from: Autodesk.
// Bifrost: Loading library: bifrostObjectMayaTranslations, from: Autodesk.
// Bifrost: Loading library: geometries, from: Autodesk.
// Bifrost: Loading library: fluids, from: Autodesk.
// Bifrost: Loading library: particles, from: Autodesk.
// Bifrost: Loading library: file, from: Autodesk.
// Bifrost: Loading library: midgard, from: Autodesk.
// Bifrost: Loading library: nucleus, from: Autodesk.
// Bifrost: Loading library: simulation, from: Autodesk.
// AbcImport v1.0 using Alembic 1.7.5 (built Feb 6 2018 18:28:08)
updateRendererUI;
updateRendererUI;
file -force -options "-shadowLinks 1;-mask 6399;-lightLinks 1;-boundingBox;-fullPath" -typ "ASS Export" -pr -es "C:/Users/seald/Documents/standintest/test.ass";
arnoldExportAss -f "C:/Users/seald/Documents/standintest/test.ass" -s -shadowLinks 1 -mask 6399 -lightLinks 1 -boundingBox -fullPath-cam perspShape;
// Warning: [mtoa] No light in scene //
# Error: line 1: UnicodeEncodeError: file C:\Program Files\Autodesk\Maya2020\bin\python27.zip\encodings\utf_8.py line 16: ascii #
# Error: line 1: UnicodeEncodeError: file C:\Program Files\Autodesk\Maya2020\bin\python27.zip\encodings\utf_8.py line 16: ascii #
// C:/Users/seald/Documents/standintest/test.ass //

 

 

 

Message 4 of 5
kgskgs4534
in reply to: Anonymous

Hi. If you haven't solved the problem, try this method if you still need help.

 

Go to Render Settings > Common > path: ()

 

Check if there are any non-English characters on the path.

 

If you have, change the setting. File > Set Project or Change Project.

 

I hope there are good results.

Message 5 of 5
jesped
in reply to: Anonymous

Same problem here, no file saved on the chosen folder (or anywhere else) and this is what the Script Editor says:

// Result: scriptEditorPanel1Window|scriptEditorPanel1|formLayout412|formLayout414|paneLayout6|cmdScrollFieldReporter3 //
import mtoa.ui.arnoldmenu;mtoa.ui.arnoldmenu.doExportStandIn(selected=True)
ExportSelection;
checkForUnknownNodes(); projectViewer ExportActive;
proc int fbxExportSel() {int $rtn = 0; if (`exists IsExportActiveOperationMode`) { $rtn = IsExportActiveOperationMode(); }; return $rtn;}; fbxExportSel();
// Result: 1 //
proc int fbxExportSel() {int $rtn = 0; if (`exists IsExportActiveOperationMode`) { $rtn = IsExportActiveOperationMode(); }; return $rtn;}; fbxExportSel();
// Result: 1 //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
fileOperationsOptionsUISetup ExportActive FileDialogOptionsGrpBoxLayout;
np_getPrimaryProjectFileRules 0;
// Result: Scenes scene scenes Templates templates assets Images images images Source Images sourceImages sourceimages Render Data renderData renderData Clips clips clips Sound sound sound Scripts scripts scripts Disk Cache diskCache data Movies movie movies Translator Data translatorData data Time Editor timeEditor Time Editor AutoSave autoSave autosave Scene Assembly sceneAssembly sceneAssembly //
fileOperationsOptionsUIInitValues ExportActive FileDialogOptionsGrpBoxLayout"ASS Export";
import mtoa.utils;mtoa.utils._objectStore[2104613491656]('fileOptionsScroll', 'post', '-expandProcedurals;-shadowLinks 0;-mask 6385;-lightLinks 0;-exportAllShadingGroups;-boundingBox;-fullPath', 'fo_optionsCallback')
# Result: 1 #
fileOperationsOptionsUICallback ExportActive FileDialogOptionsGrpBoxLayout "//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass";
fileCmdCallback;
fileCmdRestoreCallback;
import mtoa.utils;mtoa.utils._objectStore[2104613491656]('fileOptionsScroll', 'query', '', 'fo_optionsCallback')
fo_optionsCallback("-expandProcedurals;-shadowLinks 0;-mask 6385;-lightLinks 0;-exportAllShadingGroups;-boundingBox;-fullPath");
// Result: 1 //
# Result: 1 #
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass").replace("\\","/");
# Result: u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass' #
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass").replace("\\","/");
# Result: u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass' #
toNativePath(`workspace -q -rootDirectory`);
(u"//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/").replace("/","\\");
# Result: u'\\\\nonews\\W\\CG Works\\3D Products\\Times Square\\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\\Maya\\' #
// Result: \\nonews\W\CG Works\3D Products\Times Square\7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]\Maya\ //
workspace -q -rootDirectory;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
fileCmdCallback;
fileCmdRestoreCallback;
fileCmdCallback;
fileCmdRestoreCallback;
fileCmdCallback;
fileCmdRestoreCallback;
fileCmdCallback;
fileCmdRestoreCallback;
fileCmdCallback;
fileCmdRestoreCallback;
fileCmdCallback;
fileCmdRestoreCallback;
file -force -options "-expandProcedurals;-shadowLinks 0;-mask 6385;-lightLinks 0;-exportAllShadingGroups;-boundingBox;-fullPath" -typ "ASS Export" -pr -es "//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass";
fileCmdCallback;
HfSaveSceneCallback true 1;
workspace -q -rd;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/ //
about -application;
// Result: maya //
about -product;
// Result: Maya 2018 //
about -version;
// Result: 2018 //
about -cutIdentifier;
// Result: 202004151615-e82ce49a8d //
about -osv;
// Result: Microsoft Windows 8 Enterprise Edition, 64-bit (Build 9200)
//
arnoldExportAss -f "//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass" -s -expandProcedurals -shadowLinks 0 -mask 6385 -lightLinks 0 -exportAllShadingGroups -boundingBox -fullPath-cam perspShape;
file -q -exn;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation 03.mb //
getPanel -scriptType renderWindowPanel;
// Result: renderView //
stopIprRendering renderView;
import mtoa.utils;mtoa.utils._objectStore[2104617136984]()
# Result: False #
renderer -materialViewRendererSuspend true;
import mtoa.utils;mtoa.utils.getSourceImagesDir()
# Result: [u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/sourceimages'] #
import maya.cmds as cmds;cmds.workspace(query=True, rootDirectory=True)
# Result: u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/' #
// Warning: arnold_bifrost.dll was compiled against non-compatible Arnold 6.0.0.0 //
prepareRender -setup;
prepareRender -invokePreRender;
colorManagementPrefs -q -cmEnabled;
// Result: 1 //
colorManagementPrefs -q -outputTransformEnabled;
// Result: 0 //
import mtoa.utils;mtoa.utils.getSourceImagesDir()
# Result: [u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/sourceimages'] #
import maya.cmds as cmds;cmds.workspace(query=True, rootDirectory=True)
# Result: u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/' #
internalVar -userPrefDir;
// Result: C:/Users/Jesus/Documents/maya/2018/prefs/ //
colorManagementCatalog -queryUserTransformPath;
// Result: C:/Users/Jesus/Documents/maya/synColor/Shared/ //
ls -sl -typ shadingEngine;
import mtoa.utils;mtoa.utils.getSourceImagesDir()
# Result: [u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/sourceimages'] #
import maya.cmds as cmds;cmds.workspace(query=True, rootDirectory=True)
# Result: u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/' #
colorManagementPrefs -q -cmEnabled;
// Result: 1 //
colorManagementPrefs -q -outputTransformEnabled;
// Result: 0 //
internalVar -userPrefDir;
// Result: C:/Users/Jesus/Documents/maya/2018/prefs/ //
colorManagementCatalog -queryUserTransformPath;
// Result: C:/Users/Jesus/Documents/maya/synColor/Shared/ //
colorManagementPrefs -q -cmEnabled;
// Result: 1 //
colorManagementPrefs -q -renderingSpaceName;
// Result: scene-linear Rec 709/sRGB //
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level_opacity.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level_opacity.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/Groundplants0041_2_S.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/Groundplants0041_2_S.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level_opacity.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/Groundplants0041_2_S.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.tx')
# Result: [] #
prepareRender -invokePostRender;
prepareRender -restore;
file -q -exn;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation 03.mb //
import mtoa.utils;mtoa.utils.getFileName(1, 'RenderPass=beauty RenderLayer=defaultRenderLayer Camera=persp Extension=exr Scene="Vegetation 03"', frame=1, path=r'w:\mecagoendios', fileType='images', strictAOVs=True, createDirectory=True);
exists renderLayerDisplayName;
// Result: 1 //
renderLayerDisplayName masterLayer;
// Result: masterLayer //
# Error: line 1: WindowsError: file C:\Program Files\Autodesk\Maya2018\bin\python27.zip\os.py line 157: 5 #
import mtoa.utils;mtoa.utils.getSourceImagesDir()
# Result: [u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/sourceimages'] #
import maya.cmds as cmds;cmds.workspace(query=True, rootDirectory=True)
# Result: u'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/' #
colorManagementPrefs -q -cmEnabled;
// Result: 1 //
colorManagementPrefs -q -renderingSpaceName;
// Result: scene-linear Rec 709/sRGB //
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level_opacity.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level_opacity.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/Groundplants0041_2_S.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/Groundplants0041_2_S.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg')
# Result: ['//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.jpg'] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_02_level_opacity.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/Groundplants0041_2_S.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level_opacity.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_steam_bump.tx')
# Result: [] #
import mtoa.makeTx; mtoa.makeTx.expandFilename('//NoneWS/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/textures/tree_01_level.tx')
# Result: [] #
import mtoa.utils;mtoa.utils.getFileName(1, ' RenderLayer=defaultRenderLayer Camera=persp Extension=ass Scene="Vegetation 03"', frame=1, path=r'//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation', fileType='ASS', isSequence=False, createDirectory=True);
exists renderLayerDisplayName;
// Result: 1 //
renderLayerDisplayName masterLayer;
// Result: masterLayer //
# Result: '//nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_Times.Square/Maya/scenes/Vegetation.ass' #
import getpass; getpass.getuser();
# Result: 'Jesus' #
file -q -sn;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation 03.mb //
renderer -materialViewRendererSuspend false;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_Times.Square/Maya/scenes/Vegetation.ass //
memory -he -mb -af;
// Result: 5916.425781 //
memory -fr -mb -af;
// Result: 37176.695313 //
memory -pf;
// Result: 11382534 //
HfSaveSceneCallback false 1;
fileCmdRestoreCallback;
// Result: //nonews/W/CG Works/3D Products/Times Square/7th_Avenue_&_Broadway_from_45st_to_48st_[Times.Square]/Maya/scenes/Vegetation.ass //
fileCmdCallback;
fileCmdRestoreCallback;
// Result: 1 //
editMenuUpdate MayaWindow|mainEditMenu;
isDisplayingAllRendererTabs;
// Result: 0 //
rendererTabLayoutName "arnold";
// Result: arnoldTabLayout //
uiRes m_createMayaSoftwareCommonGlobalsTab.kNewFileName;
// Result: File name: ^1s //
uiRes m_createMayaSoftwareCommonGlobalsTab.kNewTo;
// Result: To: ^1s //
global string $gMeasurementUnitsNames[];
global proc string[] _mtoa_global_var_gMeasurementUnitsNamesArray() { global string $gMeasurementUnitsNames[]; return $gMeasurementUnitsNames; } _mtoa_global_var_gMeasurementUnitsNamesArray();
// Result: pixels inches cm mm points picas //
global string $gResolutionUnitsNames[];
global proc string[] _mtoa_global_var_gResolutionUnitsNamesArray() { global string $gResolutionUnitsNames[]; return $gResolutionUnitsNames; } _mtoa_global_var_gResolutionUnitsNamesArray();
// Result: pixels/inch pixels/cm //
convertPixelsToInches(960, 72.0);
// Result: 13.333333 //
convertPixelsToInches(540, 72.0);
// Result: 7.5 //
convertMeasurement(13.3333333333, "inches", "inches");
// Result: 13.333333 //
convertMeasurement(7.5, "inches","inches");
// Result: 7.5 //
convertResolutionMeasurement(72.0, "pixels/inch", "pixels/inch");
// Result: 72 //
setDecimalPrecision(13.3333333333, 1.0);
// Result: 13.3 //
setDecimalPrecision(7.5, 1.0);
// Result: 7.5 //
resolutionFormats_melToUI("inches");
// Result: inches //
setDecimalPrecision(72.0, 1.0);
// Result: 72 //
resolutionFormats_melToUI("pixels/inch");
// Result: pixels/inch //
uiRes m_createMayaSoftwareCommonGlobalsTab.kNewImageSize;
// Result: Image size: ^1s x ^2s (^3s x ^4s ^5s ^6s ^7s ) //
changeToolIcon;
dR_contextChanged;
currentCtx;
// Result: moveSuperContext //
if(`exists dR_updateCommandPanel`) dR_updateCommandPanel;
dR_updateToolSettings;
HfDeleteExtraFurGlobals;
HfDeleteExtraFurGlobals;

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report