Accessing Morph Tag's morphs



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/11/2007 at 06:11, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:    
    Platform:      
    Language(s) :

    ---------
    I'm making a Plugin Tag that uses a link to a Morph Tag and I want to set it's morphs' parameters (0-100%).

    1st: does this get me the real Morph Tag from the link?

    // tag is my plugin tag
    BaseContainer *data = tag->GetDataInstance();
    // MORPHTAG is the link field of my plugin
    BaseList2D *link = data->GetData(MORPHTAG).GetLink(doc);

    2nd: how do I access and iterate throw each of the morphs in the Morph tag?

    Thanks, any help is appriceated



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/11/2007 at 12:01, xxxxxxxx wrote:

    1. BaseTag* mtag = static_cast<BaseTag*>(data->GetLink(MORPHTAG, doc));

    2. No idea. It may be obvious from the morph tag's resource description, mentioned in the SDK docs, or you'll need to wait for an official response here. The MOCCA morph deformer is relatively new (only since R10) - and there is no mention in the SDK docs or in the resource folder. You'll need to go to the main modules:ca2:res:description folder for the morph descriptions (not the modules folder in resource).



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/11/2007 at 04:07, xxxxxxxx wrote:

    It seems the morph target list is some custom data type. There is currently no official API for the Morph tag. I will see if I can get some answers from the developers.

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/01/2008 at 10:33, xxxxxxxx wrote:

    Resuscitating this topic with a little CPR (C4D Programming Resuscitation technique). :)

    I, too, will be needing access to Morph tags soon. What I'm wanting to do is convert the proprietary morphs in interPoser Pro into R10 Morph tags. Rather not try the old method requiring full objects as it would consume vast memory even in 64-bit systems (imagine 3500 morphs represented by the same number of objects each with 80,000 points/polys!). The question would be how to transfer my morph deltas to the Morph tag.

    Thanks,


Log in to reply