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.
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
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
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!
Can't find what you're looking for? Ask the community or share your knowledge.