TranslationMaps?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/05/2008 at 21:00, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.1+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Howdy,Well, I'm finally getting to understand how to use the TranslationMaps to remap the stored weights in my tags, but it seems that not all modeling tools send TranslationMap data. In particular, the Optimize command does not send the MSG_TRANSLATE_POINTS and therefore no TranslationMaps data, either. It does however send the MSG_POINTS_CHANGED along with VariableChanged data, which has an optional translation map made up of a simple array of type LONG.
Now, I've created a function in my tag called RemapWeights() which is called from the Message() function after receiving the MSG_TRANSLATE_POINTS message. When the Message() function calls the RemapWeights() function, it passes the pointer to the TranslationMaps data.
So I reckon my question is, can I use the VariableChanged data to build a TranslationMaps data, so I can use the same RemapWeights() function call?
I sure could use an example of this, if at all possible. ;o)
Adios,
Cactus Dan -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/05/2008 at 09:01, xxxxxxxx wrote:
Howdy,
OK, nevermind. I figured it out.
Adios,
Cactus Dan