Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Rewriting some old work
  RSS 2.0 ATOM  

Rewriting some old work
Rate this thread
 
63349
 
Permlink of this thread  
avatar
  • Total Posts: 3
  • Joined: 06 January 2012 11:12 AM

Hi guys,

I dug through the forums and couldn’t find what I needed specifically, so I figured I would post about what I’m doing and see if anyone knows where I’m going wrong.

I wrote a script a couple of years ago that would render an animated model from a number of different angles and dump it out to a series of images. It was so I could create some sprite sheets of models that I had animated. I decided to go back to it and rewrite it, since I wasn’t happy with the implementation.

One thing that I noticed was that the way I was rendering was to use a command that looked something like “render -r mr ... “ but what I am finding is that the -r flag was removed from render sometime before Maya 2012, along with most of its functionality. I tried to put together a similar solution using batchRender, but it’s not going great. After each iteration of the loop where my camera rotates around the object, it attempts to cancel the last batch render and start the new one. With ‘render’ it would execute sequentially, so that wasn’t an issue. Does anyone have some insight into how to effectively use batchRender? Or some more useful variation?

Thanks guys.



Replies: 2
/img/forum/dark/default_avatar.png

It turns out I was actually using a system("render ... “) command, which accesses the render.exe. Weird. Guess I will dig around and see if I can get that working again.

Author: Shanthosa

Replied: 07 January 2012 07:03 AM  
/img/forum/dark/default_avatar.png

So I’ve got the script 99% working, but it uses Mayatomr -pv to actually output the rendered images. If I use Mayatomr -render, then it never executes the render. It just accepts it and never begins mentalray. Any insight?

Author: Shanthosa

Replied: 09 January 2012 01:13 PM