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
    • Register
    • Login

    zoom

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 309 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 19/05/2005 at 09:12, xxxxxxxx wrote:

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

      ---------
      Hi,
      I'm trying to create a track etc, for FocalLength.
      Via: op->FindTrack, InsertTrack, etc.
      But How do I find the (descID) needed.
      Could it be something like descID = DescID(DescLevel(ID_CAMERA_ZOOM,0,0) ?
      Thanks.

      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 19/05/2005 at 10:48, xxxxxxxx wrote:

        DescID(DescLevel(CAMERA_FOCUS), DescLevel(0, DTYPE_REAL, 0))

        Usually, you can use the description resource (like Ocamera.res) to get at the description ID definitions. You might also want to set the CAMERA_APERTURE along with this.

        In this case, the second DescLevel() exists because I use a generic track/sequence/key creation function. Like this track code section, where id = CAMERA_FOCUS and sid = 0:

          
             // Find Object Track by id/sid  
             if (!(track = obj->FindTrack(DescID(DescLevel(id), DescLevel(sid, DTYPE_REAL, 0)))))  
             {  
                  if (!(track = AllocValueTrack(obj, DescID(DescLevel(id), DescLevel(sid, DTYPE_REAL, 0))))) return ErrorException::Throw(GeLoadString(ERROR_MEMORY_TEXT), "CreateKeys.track");  
                  obj->InsertTrackLast(track);  
                  doc->AddUndo(UNDO_NEW, track);  
             }  
        
        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 19/05/2005 at 13:04, xxxxxxxx wrote:

          Wauw, thanks Robert, its working allright.
          I'm recording position and rotation tracks with a similar generic function.
          Strange thing is: replay position tracks seems a heavy load.
          Deleting the recorded position tracks (HPB) on the fly, immediatly causes a jump up in framespeed. (no matter display quality).
          As said I use the same function for recording tracks

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