You need to save the script as a file named script.php
(or anything with .php
). Copy everything, paste it into a text editor of your choice. Place it somewhere, probably best in /Users/your-username/script.php
, or any other folder you like.
Now you can run the script using the php
binary which comes with OS X.
Open the Terminal.app from Applications → Utilities. Enter the following line
php ~/script.php ~/file.m3
to execute the script. ~
is short for your home directory. Of course, file.m3
needs to exist in your home directory as well and be the StarCraft file you want to convert.
The resulting .obj
file will probably be placed in the same folder as the m3
file.
manpreet
Best Answer
2 years ago
I found a script for converting m3 files (3D f="https://forum.tuteehub.com/tag/model">models f="https://forum.tuteehub.com/tag/use">used in Starcraft 2) to obj files, but I do not know how to f="https://forum.tuteehub.com/tag/use">use it. All the information I got was "Well, here is the script.", so I cannot really give you much information, besides the fact that I have never heard of PHP before.
Here is the script
How can I f="https://forum.tuteehub.com/tag/use">use this?