Stephen, I tried your script and it still wasn't working for me. Try running your script on 3 polyCubes, 2 of them will appear as spheres. And, no problem ArtQuest. Happy to help :)
Undo still seems to work for me in Maya 2015. Here's what I do --> make 4 polyCubes, run the 2 lines of export script, undo until I only have 1 cube. Are you doing something else before or after exporting that would cause the undo to not work? Maybe try this? (I've used something like this when undo stacks would break in…
Hi all, So I'm writing up this script that I'll be officially releasing soon but I can't seem to get it to run with multiple objects selected. I get the error "// Warning: Line 3.49 : Redeclaration of variable "$shape" shadows previous declaration at line 2. Previous value will be overwritten by explicit initializer." was…
You'll notice that the second object is a sphere and not a cube in your screen shot. They should both be matching. I'm getting the same result as you too! But each mesh should be getting the same operation applied to it. The script works great with a single object but not with multiple selected.
Since you say it works perfectly when you have 1 object selected, I've modified your script to force it to do one object at a time. Give this a try. It seems to be working for me in Maya 2015 SP6. **EDIT: Fixed an error with iteration and selection.
On a side note, does anyone perhaps know why exporting/saving through a script would cause maya to throw an error when trying to overwrite a fie? EDIT: actually it's not even writing the file the first time. it simply isn't there. I've checked the properties and it says it's read + write for my user. Maybe I'm going about…
You are correct! Also I got it working. But I'm going to need to change how I do this because using the file export breaks the undo stack in maya. I would love any suggestions you have, allow me to redirect you to the full (beta) release thread of the tool. Thanks to you I have all the basic functionality working and…
It looks like you are trying to save the temp.mb to a location that doesn't exist. I'm thinking Maya doesn't know where /AppData/Local/Temp/ is. If you change the save location to include a drive directory, the save will create the file and be able to be overwritten (something like…