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

Batch rendering cameras in several files.

5 REPLIES 5
Reply
Message 1 of 6
ding_on
1214 Views, 5 Replies

Batch rendering cameras in several files.

Hi everyone,

 

I am trying to render several cameras in several files with a script.

 

What it does:

- open MB application

- open file

- render each camera of the scene

- clear the scene

 

Everything works fine, but the resulting videos have a problem: it's the right camera but THERE IS NO ANIMATION. The timecode rolls but nothing moves.

The only moving elements are the particles that seem to play normally!

 

I've tried a bunch of things like:

- OnFileOpenCompleted.Add(MyCallback)

- OnUIIdle.Add()

- FBSystem().Scene.Evaluate() at every step

- PreRender()

- SwitchViewerCamera()

- Plot all scene

- FBMessageBox()

- FBPlayerControl() with StepForward, GotoStart, Play,...

- FBCreateObject() with 300 cubes

but nothing seems to solve the problem.

 

Is there any way to get the animation moving in a batch render?

 

Many thanks.

5 REPLIES 5
Message 2 of 6
middlek
in reply to: ding_on

Not sure if you have seen the sample here it works nicely:

C:\Program Files\Autodesk\MotionBuilder 2014\bin\config\Scripts\Rendering

 

You run the sample bu using 'render.bat' as it sets up some dependencies, and then you can see your renderings here:

C:\Program Files\Autodesk\MotionBuilder 2014\bin\config\Scripts\Rendering\fbx_dst

You should be able to backwards engineer this to you code and hopefully see where the differences are... "in theory".

Without any code, it's hard to know where you specific issue is.

 

~Kristine

KRISTINE MIDDLEMISS | SENIOR MOTION CAPTURE ENGINEER
Message 3 of 6
middlek
in reply to: middlek

Also did you see this post, not sure if it will help:

http://forums.autodesk.com/t5/Python/Suppress-Render-Dialog/td-p/4643957

 

~Kristine

KRISTINE MIDDLEMISS | SENIOR MOTION CAPTURE ENGINEER
Message 4 of 6
ding_on
in reply to: middlek

Hi Kristine,

 

thank you for your reply 🙂

 

I made a custom tool to batch render several cameras in a scene with a UI.

It works fine.

 

I'm actually using the render.py example script as a basis to expand my previous code

to several files. And everything seems to work fine, except for the animation part!

 

Unfortunately I can't paste here all my code, too many lines.

 

I was hoping someone had met the same problem...

 

Again, thank you for your time!

Message 5 of 6
gr3gfx
in reply to: ding_on

Hi
Do you finish your script?
Message 6 of 6
ding_on
in reply to: gr3gfx

Sorry Greg,

we never found the solution, we're still rendering manually, opening every file one by one... Smiley Sad

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

Post to forums  

Autodesk Design & Make Report