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

    Camera Switching

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 588 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 14/10/2010 at 01:31, xxxxxxxx wrote:

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

      ---------
      Hi !
      The goal is to make a camera the active one when it is selected...
      I can't get it work. (C4D 11.5).

      The C.O.F.F.E.E Tag is on the camera itself.

      main(doc,op) {

      var bd,cam;

      cam=op;

      bd = doc->GetActiveBaseDraw();

      bd->SetSceneCamera(cam);  <- this always returns "Member not found" ...

      }

      Thanks for help.

      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 14/10/2010 at 08:32, xxxxxxxx wrote:

        Something like this should work:

          
        main(doc,op)  
        {  
          var bd = doc->GetActiveBaseDraw();  
          bd#BASEDRAW_DATA_CAMERA = op;  
        }  
        

        cheers,
        Matthias

        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 14/10/2010 at 08:57, xxxxxxxx wrote:

          just to add. SetSceneCamera member is not available in COFFEE, that´s why it wouldn´t work int he first place and gives you this message. Matthias code works just fine though.

          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 14/10/2010 at 13:53, xxxxxxxx wrote:

            It works great ! That was so simple, I think I saw it when I explored BaseDraw.h, I didn't deduced it was the one :D...

            So Matthias, 3D Designer, my question is now :

            Why "SetSceneCamera()" isn't available in C.O.F.F.E.E. although it is in the C.O.F.F.E.E. SDK I just picked up on www.Plugincafe.com ?
            Is there a way to know which commands works with C.O.F.F.E.E. and which one doesn't ?

            Lots of thanks !

            void SetSceneCamera(BaseObject* op)_<_h4_>_

            Sets a new scene camera. If op is NULL, the editor camera is used._h5> _Paramet_ <_h5_>_i>
            > BaseObject* op
            >
            >> The new camera.

            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 14/10/2010 at 14:21, xxxxxxxx wrote:

              I just downloaded the coffee docs and I don´t see this command documented. Are you sure you didn´t download teh c++ sdk docs?

              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 14/10/2010 at 15:44, xxxxxxxx wrote:

                woops ... Seems like you're right ... It is less complicated than the C++ one, and I guess less powerfull too...

                Thank you again !

                Mike

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