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

    Movie_From data, how to?

    SDK Help
    0
    2
    282
    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 17/03/2003 at 11:04, xxxxxxxx wrote:

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

      ---------
      I'm trying to set data in the Movie_From and Movie_To fields of the movie data of a texture.
      I wrote the folowing code:

        
      main()  
      {  
      var mat = texture; // texture is a variable from a port of the COFFEE node  
        
      var color = mat->GetChannel(CHANNEL_COLOR);  
      var colorBc = color->GetContainer();  
        
      var ct=colorBc->GetData();  
        
      ct->SetFloat(BASECHANNEL_TIME_FROM,number1); // WHY ISN'T THIS WORKING???  
        
      colorBc->SetData(&ct;);  
        
      color->SetContainer(colorBc);  
      mat->Update();  
      }  
      

      Why is the line ct->SetFloat(BASECHANNEL_TIME_FROM,number1); not working?!?!?
      How can I make it work? Oh, the number1 variable is also a variable from a port of the COFFEE node.
      Thank you very much in advance.

      Rui Batista

      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 18/03/2003 at 10:02, xxxxxxxx wrote:

        Wow, did you ever even get this to compile? Here are all the errors:
        1. BASECHANNEL_TIME_FROM undefined (define as 1008).
        2. colorBc->GetData(); makes no sense. Use the container directly.
        3. BASECHANNEL_TIME_FROM is an integer, the frame number. So use SetData() and use an integer. (There's no SetFloat() in C.O.F.F.E.E.)

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