HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_AgentBakeMLSkinDeformer Class Reference

#include <GU_AgentMLSkinDeformer.h>

Public Member Functions

exint addAgent (const GU_Agent *agent)
 
bool evaluate (UT_StringHolder &error_msg)
 Evaluate the blendshape weights for all of the registered agents. More...
 
UT_Span< const
GU_Agent::FloatType
getChannelValues (const GU_Agent *agent, exint id) const
 

Detailed Description

Utility for baking the ML deformer's blendshape weights back to channel values for a set of agents (which may have mixed agent definitions and/or have multiple shapes using ML deformers). This can be useful for e.g. baking the blendshape weights for export to other file formats.

Definition at line 91 of file GU_AgentMLSkinDeformer.h.

Member Function Documentation

exint GU_AgentBakeMLSkinDeformer::addAgent ( const GU_Agent agent)

If the agent has one or more shapes using the ML deformer, returns a unique ID for retrieving its evaluated channel values. Otherwise, returns -1.

bool GU_AgentBakeMLSkinDeformer::evaluate ( UT_StringHolder error_msg)

Evaluate the blendshape weights for all of the registered agents.

UT_Span<const GU_Agent::FloatType> GU_AgentBakeMLSkinDeformer::getChannelValues ( const GU_Agent agent,
exint  id 
) const

Return the rig channel values for the specified agent. This must be called after evaluate().


The documentation for this class was generated from the following file: