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-Data

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 261 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 03/02/2010 at 04:30, xxxxxxxx wrote:

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

      ---------
      Hello again,
      and another Question....before I continue my Pluginproject I want to be sure....it is even possible to make the Plugin I want.
      I have figured that you cant get information out of the atribute manager, right? But could I get some how the the focal lenght of the editorcamera for example? I need just a yes or no.....If not I can give up my pluginidea....So I hope someone can tell this...

      Greetings, Holger

      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 03/02/2010 at 05:09, xxxxxxxx wrote:

        It's quite possible to get and set data of the attribute manager. Not all data types are supported or only very limited.

        For instance to store the value of the camera's focal length into a variable you would do something like this:

          
        var fl = cam#CAMERA_FOCUS; //cam is the camera object  
        

        To set the value do something like this:

          
        cam#CAMERA_FOCUS = 50.0; //cam is the camera object  
        

        You can obtain the IDs of the AM parameters by dragging them into the script manager or the command line of the Cinema4D console.

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

          Ok...thats good news.....I know that from scripting.....i just heard that its not possible to take this Data with a plugin....but i surely missunderstood that...

          bytheway: I just finished my very first Plugin....it says "Hello"   Yipppieeee!!!! 🙂

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