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
    • Recent
    • Tags
    • Users
    • Login

    I want to Record to Timeline

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 464 Views
    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 Offline
      Helper
      last edited by

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

      On 05/08/2010 at 22:10, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R11 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello
      I want to Record to Timeline.
      Very poor at English
      If it can do, I will want you to show an example.
        int i;
        i=0;
        BaseDocument* doc1 = GetActiveDocument();
        BaseObject* A_obj = doc1->GetActiveObject();
        CINTER_STEP; //It is step mode about on off
        A_obj->SetRenderMode(MODE_ON);
        A_obj->SetEditorMode(MODE_ON);

      start = i+1;
        BaseTime stime = BaseTime::BaseTime(start,doc1->GetFps());
        doc1->SetTime(stime);

      A_obj->SetRenderMode(MODE_OFF);
        A_obj->SetEditorMode(MODE_OFF);

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

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

        On 08/08/2010 at 06:53, xxxxxxxx wrote:

        DescID     descID = DescID(DescLevel(ID_BASEOBJECT_VISIBILITY_EDITOR));
        CTrack     *track;
        CCurve     *seq;
        CKey     *key;

        // check if track exists
        track = op->FindCTrack(descID);
        if (!track)
        {
             track = CTrack::Alloc(op, descID);
             if (!track)
                  return FALSE;
             op->InsertTrackSorted(track);
        }
        seq = track->GetCurve();
        if (!seq)
             return FALSE;
        key = seq->AddKey(time);
        if (!key)
             return FALSE;
        if (!track->FillKey(doc, op, key))
             return FALSE;
        ...

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

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

          On 09/08/2010 at 00:11, xxxxxxxx wrote:

          Thank you corresponding to a busy place
          First of all, it is gratitude.
          It is difficult.
          From now on, I think.

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

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

            On 17/08/2010 at 02:02, xxxxxxxx wrote:

            Thank You Very Much
            It was recordable.
            If it can do, I will want to record by STEP_MODE.
            It is Linear_MODE now.
            If it can do, I will want you to show an example.

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

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

              On 23/08/2010 at 21:04, xxxxxxxx wrote:

              Once more chance Please
              From SKD ↓
              >CInterpolation
              >Header
              >operatingsystem.h
              >
              >Definition
              >enum CInterpolation
              >{
              >public:
              >  CINTER_SPLINE;
              >  CINTER_LINEAR;
              >  CINTER_STEP; ←←←←←←
              >};
              I'd like to record to Timeline by "STEP_MODE".
              But I don't know how to do it.
              Could you send me a sample program?

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