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

    Camera

    SDK Help
    0
    4
    408
    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 02/05/2003 at 12:49, xxxxxxxx wrote:

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

      ---------
      Can someone tell me how to use SetSceneCamera()? Maybe a small example.

      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 02/05/2003 at 19:04, xxxxxxxx wrote:

        öhm - SetSceneCamera(cam);
        Easy isn´t it? 😉 cam must be a camera object that is in the current scene, if there is no camera or you pass a null-pointer the editor camera will be set.

        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 12/05/2003 at 15:44, xxxxxxxx wrote:

          I try to use my own created camera by performing the following code :
          CameraObject * mycam = static_cast<CameraObject *>(AllocObject(Ocamera));
          document->GetRenderBaseDraw()->SetSceneCamera(mycam);
          but if I try to get back what is the scene camera right after, using :
          CameraObject * mytestcam = (CameraObject* )document->GetRenderBaseDraw()->GetSceneCamera(document);
          the returned camera doesn't match my camera but still the previous one.
          If someone can explain me what I'm doing wrong or if there is an action required to set the camera it would be very helpful.
          Thanks in advance. (I'm using Cinema 4D 7.303)

          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 13/05/2003 at 02:51, xxxxxxxx wrote:

            I have found the solution.
            A camera needs to be added to the scene graph in order to be set as the scene camera and render the scene with it.
            document->InsertObject(mycam, NULL, NULL);
            then
            document->GetRenderBaseDraw()->SetSceneCamera(mycam);

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