Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Morph

    SDK Help
    0
    2
    211
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

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

      On 05/02/2004 at 00:06, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      hi,
      I am working on a project with coffee and I will use MorphObject but there ýs a býg problem for me, which is I cannot  reach to morph keys. if you can send me a piece of a small code about ýt, it will be greatly appreciatedç
      Thanks

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

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

        On 09/02/2004 at 17:04, xxxxxxxx wrote:

        Starting with 8.5 it's possible to access the object link in the morph key with:

            
            
            enum  
            {  
             MORPHKEY_LINK   = 1001,  
             MORPHKEY_BIAS = 1002, // real  
             MORPHKEY_CUBIC = 1003 // bool  
            }
            
            
            
            
            main(doc,op)  
            {  
              var obj = doc->GetFirstObject();  
              var track = obj->GetFirstTrack();  
              var seq = track->GetFirstSequence();  
              var key = seq->GetFirstKey();  
              var bc = key->GetContainer();  
              var link = bc->GetObject(MORPHKEY_LINK, doc);  
              println(link->GetName());  
            }
        

        (It isn't possible in earlier versions, since there's no GetObject() function.)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post