Film Offset



  • 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



  • 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));
    


  • 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



  • 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).


Log in to reply