Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Command Line prerender mel script or mel command with spaces

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
potter.david2
994 Views, 2 Replies

Command Line prerender mel script or mel command with spaces

I'm trying to use the -preRender flag for Maya command line rendering.

 

I'm having luck with:

Render -preRender "torus;" cubeCone.ma

 

I'm not having luck with:

Render -preRender "hide pCube1;" cubeCone.ma

because there are spaces in the mel command.

How do I fix this?

 

And in an ideal world I would be able to call a mel script instead of just including the mel command lines. But I have had no luck with this. What is the real world syntax to do that? The manual doesn't help much.

 

Thank you.

2 REPLIES 2
Message 2 of 3

There's an example on this page. It does something completely unrelated to what you're doing, but it has spaces in the prerender mel:
https://arnoldsupport.com/2016/08/11/exporting-ass-files-to-specific-locations/



// Stephen Blair
// Arnold Renderer Support
Message 3 of 3

Thanks for the suggestion Stephen.

 

Actually it was a bug with Maya. It was fixed in the latest update. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report