Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Film Offset

    SDK Help
    0
    4
    331
    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 19/12/2005 at 08:32, xxxxxxxx wrote:

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

      ---------
      Hello,

      I'm trying to set the film offset x and y parameter of the camera during the rendering (in a plugin) but I don't find the way I can do that. SetOffset on the CameraObject is not correct and I didn't find any other way in the documentation. Some help would be very nice !
      Thansk a lot in advance.

      Vincent

      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 20/12/2005 at 09:39, xxxxxxxx wrote:

        Use CAMERAOBJECT_FILM_OFFSET_X and CAMERAOBJECT_FILM_OFFSET_Y in the camera container (see Ocamera.res). So simply

            
            
            cam->SetParameter(DescLevel(CAMERAOBJECT_FILM_OFFSET_X), GeData(5.0));
        
        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 21/12/2005 at 00:14, xxxxxxxx wrote:

          Thanks Mikael !

          I got also an answer like this one:

          camera->GetDataInstance()->SetReal(CAMERAOBJECT_FILM_OFFSET_X,offset)

          What is the difference ?

          Thanks a lot !

          Vincent

          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 21/12/2005 at 09:43, xxxxxxxx wrote:

            They are two methods of doing almost the same thing. The one I posted is newer and more directly based on the Attributes Manager (descriptions). The one you got is based on the BaseContainer associated with many objects. The advantage of the new method is that it's more of a general access, so the value doesn't have to be stored in the container (though often it is).

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