THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/10/2004 at 17:28, xxxxxxxx wrote:
Cinema 4D Version: 8.503
Platform: Windows ;
Language(s) : C++ ;
This is related to my previous question.
Here's the hypothetical situation (not attempted yet) : I have three separate vertex weight maps per bone on the geometry. Each bone has a Restriction tag with all three weight maps set to it at 100% initially and are using Absolute Vertex Map mode. I want to make a tag or expression that changes the Restriction Tag influence depending upon which axes are rotated (sets the 100% values to different values - 0% for no rotation on an axis, combined to 100% for multiple axis rotations) BEFORE the bone is actually rotated.
1. Which is better: a tag, expression tag, or XPresso expression? Can XPresso be generalized to look at the bone or bones being rotated so that only one is needed on the geometry?
2. Will varying the Restriction Tag values have any influence at all (or are they fixed with the bones, per se)? Remember, I haven't actually attempted this yet - especially since, altogether, it is non-trivial to apply this entire concept all over my existing plugin code.
3. What is the best way to determine if a particular axis is being rotated? Currently, for my other approach, I'm using obj->GetRot() and checking changes in values from a saved previous vector.
4. How do I ensure that the changes in Restriction tag influences from each vertex map occur BEFORE the rotation/display update? Code or steps would be helpful.
5. (Bonus question!) How would one go about applying 'bulges' (i.e: muscle bulges) to geometry that are determined by bone deformation?
Even partial answers would be of great help!