Version: 
Back to list

GenerateProxy :: generateProxyMesh

Synopsis

   Automatically generates a proxy mesh out of the current selection,
with optional automatic texture maps generation.

GUI Dialog

   

Script function

   generateproxy.generateProxyMesh(gridResolution[, generateTextureMaps[, keepOriginalMesh]])

Parameters

   gridResolution (Int) : Resolution of the voxel grid used to generated the proxy
   generateTextureMaps (BakeOptionSelector[optional] : Option maps baking
   keepOriginalMesh (Bool[optional] : If true, does not delete original mesh at the and of the script

Documentation

About the scenario

This scenario creates a proxy mesh that can be used, for example, as a shadow mesh or as a collision mesh.

A proxy mesh is an envelop created by an automatic retopology of the original selected meshes.
The Grid Resolution controls how close to the original topology the resulting proxy mesh will be. A high value will create a more precise mesh, but heavier in terms of polygon count.

This scenario works for meshes only (requires the selected parts to be tessellated first).

About Material options

By default, materials are not created: no material is applied to the resulting proxy mesh.

Selecting "Bake Maps" option automatically calculates texture maps out of the aspect of the original parts (+ UVs are automatically generated).
A material, using the generated texture maps, is automatically applied to the resulting proxy mesh in its Part Material Property.
Basically, the result is: 1 mesh + [1 material + texture maps]

To go further

Refer to the Output window to check all the algorithms applied step-by-step during scenario execution.

Build and execute your own script by checking the equivalent Python script available in the Sample Script Directory (accessible from the Help menu).