[Closed] Render time mesh?
Hey,
I’m working on a mesh exporter and I need to get the render time mesh and not the one displayed in the viewport. For example there are separate iteration parameters under MeshSmooth modifier – for display and for the renderer. How can I get the renderer mesh? Either C or maxscript example would be good. Or is there such method at all?
Thanks !
Suvakas
there’s probably easier methods (a $.renderMesh, perhaps, but that certainly doesn’t exist | or some secret ‘snapshot as mesh’ option that takes the rendertime mesh), but this might work…
fn grabMesh = (
if (selection.count != 1) then ( false )
else (
global grabMeshResult
global grabMeshTarget = $
callbacks.addScript #preRenderFrame "grabMeshResult = grabMeshTarget.mesh" id:#grabMesh
render renderType:#selection outputSize:[16,16]
callbacks.removeScripts id:#grabMesh
local result = grabMeshResult
grabMeshTarget = undefined
grabMeshResult = undefined
result
)
)
Should return the mesh at rendertime… by calling render and grabbing the mesh then.
Hey,
Thanks. (sry for the late reply)
I solved the issue by using SDK and GetRenderMesh() method.
Works OK.
Your idea is interesting though. I’ll keep it. You never know =)
Thanks!
Suvakas