iimachines / Maya2glTF

Maya to glTF 2.0 exporter
MIT License
326 stars 49 forks source link

Bat file fails to extract. #196

Open branitsky opened 1 year ago

branitsky commented 1 year ago

image

Hey i have a space in my user name, Sir Darrel, the batch distribution keeps trying to go to Sir/maya instead of Sir Darrell/maya.

ziriax commented 1 year ago

I even didn't know spaces in Windows user names were possible these days 🙈

ziriax commented 1 year ago

Oh, the script is really broken! It also figures out the wrong Onedrive folder if that one has spaces in it. Thanks for reporting!

ziriax commented 1 year ago

Could you try to edit the maya2glTFDeploy.bat file with the one attached (you will have to rename it to maya2glTFDeploy.bat), and see if that works for you?

maya2glTFDeploy.txt

branitsky commented 1 year ago

So I actually got it to work by going into the original bat file and deleting the _ between USERDOCUMENTS. this worked great for the third line, and the fourth, the batch ran and i extracted properly. i was able to open the gui in maya, but i was not able to export. However when i deleted the in the line with robocopy it gave me the same access denied error. reverting to having the first 2 _ deleted, after running the batch I was able to open the gui in maya but i was not able to export. Finally, by comparing my folder setup with a friends who had this running properly, I simply grabed the plugins folder from the zip and tossed it into my maya. after htat i was able to successfully run the gui and export some glbs.

It took like 2 hours of trying and deleting things and trying again, but in the end its running.

The new bat ran perfectly fine on my laptop, that has a normal user name. rerunning the batch on this computer I am getting the same access is denied error. unsure if its because of the steps i took above, or something else.

image

ziriax commented 1 year ago

Thanks for trying! My bad, my script is broken. Batch files, so horrible... I will make an account with a space in the user name first, before bothering you.

ziriax commented 1 year ago

I have another one for you to test... Works on my machine 🙈

maya2glTFDeploy.txt