Wondering if it is possible to make a mel script that exports the contents of your different view layers off as different files into the same directory as the MB file, with pre-set options. what im trying to do is make something i can put in my shelf that will let me export out my High Poly, Low Poly and Cage in one click…
ya thanks i really need to take the time to learn some scripting at somepoint, since it would help me build a nicer workflow and tools to use in maya, and allow me to do more with UDK, and hell mel syntax seems similar to php in a way which also i should pick up at sometime.
string $layers[] = `ls -type displayLayer`;string $extension = ".SBM";for ($layer in $layers){ if ($layer != "defaultLayer"){ //Set all layers to off then turn the current layer on. setLayerTo all".visibility" 0; setAttr ($layer+".visibility") 1; //Grab connections of the layer $conns = `listConnections -destination 1…
k this is what got string $layers[] = `ls -type displayLayer`;for ($layer in $layers){ if ($layer != "defaultLayer"){ //Set all layers to off then turn the current layer on. setLayerTo all".visibility" 0; setAttr ($layer+".visibility") 1; //Grab connections of the layer $conns = `listConnections -destination 1 -source 0…
file -q -sceneName That will give you the current project the file is stored in. My plan would be to take that, remove the / pop off the last index of the array and construct back again. Then add $layer back and append the extensions as a string. Probably a better way to do this but dont have maya right now. Always sucked…
thanks got the export commend in there.string $layers[] = `ls -type displayLayer`;for ($layer in $layers){ if ($layer != "defaultLayer"){ //Set all layers to off then turn the current layer on. setLayerTo all".visibility" 0; setAttr ($layer+".visibility") 1; //Grab connections of the layer $conns = `listConnections…
Yup. I didnt have xnormal installed but you should be able to copy what the log spits out and replace the path (look into the file command. Believe you can query the scene name and do some string manipulation) and append the layer name.