I'm trying to launch a export selection dialog box, but I'd like to grab my selected objects name and store that in a variable and then have that auto pasted when the dialog appears. I can't find this in the docs, is it possible. This is what I have so far, all the options are set, but I also want to set a name so the user…
Found the answer after searching further, sharing for others that find this thread. use the -dir flag. $tbSaveLocation = `fileDialog2 -dir "c:/test.fbx" -ff "*.fbx"`; FBXProperty Export|IncludeGrp|Geometry|SmoothingGroups -v false; FBXProperty Export|IncludeGrp|Geometry|expHardEdges -v false; FBXProperty…
Spoke too soon, that hard codes the file directory as well as the name, I want the dialogue to remember the last export location and just use my provided name. Any help with that?
Its probably easier to store the last export directory (either as a custom attribute on the mesh or in a variable. Depends how you want to handle different maya sessions) and then use that to generate the directory path. EDIT: You can query it with $currentDir = `optionVar -q $gDirRetainingOptionVar`; That will get you the…