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: 

grab frame buffer from the viewport

1 REPLY 1
Reply
Message 1 of 2
Anonymous
462 Views, 1 Reply

grab frame buffer from the viewport

Hi

I am trying to figure out how to extract the the frames or grab an image from the active viewport in Motion Builder. Till now I have not got anything in the OR SDK which lets me do that. I have looked inside the Camera class and the Scene class but am not getting any method which lets me grab the scene onto a texture or an image.
Any help regarding this or a suggested wor around will be really appreciated.
1 REPLY 1
Message 2 of 2
neillsolow
in reply to: Anonymous

Hi,

you can get a frame snapshot using FBVideoGrabber class. Like this

grabber = FBVideoGrabber()
image = grabber.RenderSnapshot(-1,-1,True,True,True,True)
image.WriteToTif("c:\\img.tif", "sample", False)

For more information take a look at the Python Scripting Guide.

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

Post to forums  

Autodesk Design & Make Report