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

    VisibilityTrack & VisibilityKey pbm

    SDK Help
    0
    2
    201
    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 24/06/2004 at 04:31, xxxxxxxx wrote:

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

      ---------
      Hi All,
      I am trying to create a visibilitytrack & keys to animate one of my objects. I used the following COFFEE code. But couldnt get the output. I can see only the track, there are no keys... What could be the problem? Looking for help...
      My understanding is create the track first, then sequence next, then key with time values. Am correct to say this?

          
          
          
          
              obj=doc->GetFirstObject();
          
          
          
          
              objTrack = new(VisibilityTrack); // CREATE VISIBILITY TRACK  
              obj->InsertTrack(objTrack);  
              objTrack = obj->GetFirstTrack();  
          
          
          
          
          
              objSequence = new(VisibilitySequence); // CREATE SEQUENCE  
              objTrack->InsertSequence(objSequence);  
              objSequence=objTrack->GetFirstSequence();
          
          
          
          
              // ************* TO CREATE FIRST KEY *****************   
              objKey = new(VisibilityKey);  
              conKey = objKey->GetContainer();  
              conKey->SetData(VISIBILITYKEY_VALUE,0);  
              objKey->SetContainer(conKey);  
              objTime = new(BaseTime);  
              objTime->SetSecond(0);  
              objKey->SetTime(objTime);  
              objSequence->InsertKey(objKey);
          
          
          
          
              // ************* TO CREATE END KEY *****************   
              objKey = new(VisibilityKey);  
              conKey = objKey->GetContainer();  
              conKey->SetData(VISIBILITYKEY_VALUE,1);  
              objKey->SetContainer(conKey);  
              objTime = new(BaseTime);  
              objTime->SetSecond(30);  
              objKey->SetTime(objTime);  
              objSequence->InsertKey(objKey);
          
          
          
      

      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 25/06/2004 at 01:46, xxxxxxxx wrote:

        I have managed to find out guys. Its working well now.

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