Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Lighting & Rendering (https://simplymaya.com/forum/forumdisplay.php?f=17)
-   -   mac equivalent of .bat file rendering? (https://simplymaya.com/forum/showthread.php?t=28278)

sjtaylor84 26-11-2007 08:23 AM

mac equivalent of .bat file rendering?
 
Hi there,

When at Uni I render using a .bat file with a list of files in it. How do I do this on a mac as I have a mac at home?

Thanks in advance
Simon

gster123 26-11-2007 08:35 AM

No too sure of this is the way to do it but I think that MAC OS is UNIX based, and if so this is out of Maya 6 the complete ref.

save it as a .txt file then you change the permissions so out of the book

"open a shell then use the cd command to navigate to the location then type the following

chmod a=rwx filename.txt

(where filename is the name of the text file)

press enter (return) then to begin rendering type

./filename.txt

As I say I dont know if this is the correct way to do it for a mac but it might make more sense to a mac user as some of the commands might be commonplace in your OS vocab, and hence make sense.

t1ck135 27-11-2007 01:26 PM

yep that looks good steve :)

I still use chmod 755 or 644 or similar for ownerships (depending on what you want to do) even though it might be the 'old' way

You can do it all from your current location as well, I think its a bourne shell variant on the mac so auto tab completion should work. If you go to a terminal and type the first couple of letters of the directories that it is in and then presse the tab then it should give you the path (or if there are many with the same starting name it will cycle through them with each tab press).
once you get into the directory with the file just add the ./filename to the end and if the permissions are set correct it will execute it.
e.g,
In command terminal:
/home/simon/scripts/./filename
obviously replace with your own details ;)

not that beneficial here but just a different way of executing a script without having to move into its location

Si


All times are GMT. The time now is 12:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018