Render Sub-Objects to Texture with Python

Render Sub-Objects to Texture with Python

Anonymous
Not applicable
895 Views
1 Reply
Message 1 of 2

Render Sub-Objects to Texture with Python

Anonymous
Not applicable

Hi.

I'm starting a new project that requires me to render a sequence of frames by baking a texture.  

  

I've usually used MaxScript for these sorts of things, but I've wanted to try to use the 3DSMAX Python implementation.  
 
I've not found much in terms of Documentation of how to do these sorts of things in Python.

Specifically, I don't see how to use the  RenderExecute class to bake frames. 

There's a heavily overloaded function which seems to be the place where one would specify the render type:

 

RenderExecute.Open(INode camNode, Autodesk::Max::RendType::Type type=(RendType::Type) RENDTYPE_NORMAL) -> bool

 

However, it's not obvious how to then trigger the render.

I'd appreciate any information available about how to use Python to control "RenderToTexture" or any more thorough documentation about how to use the RenderExecute class in 3DSMAX Python.

Thanks! 

0 Likes
896 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Just to clarify, I believe I made some mistake with the auto-suggestion of the title. I do not need to render Sub-Objects.

I just need to bake objects in sequence, once per frame.

I.e, render to texture over the course of 60 frames.  


0 Likes