hi,
I've tried with the R19.053 and once I select the camera, the offsetY is already set to 0% (as it should)
to be sure with the code :
import c4d
def create_camera(i, cam_name, lst):
"""
Creates a camera with the correct name, variables and user data set.
"""
cam = c4d.CameraObject()
cam[c4d.ID_BASELIST_NAME] = '{:02d}_{}'.format(i, cam_name.capitalize())
cam[c4d.CAMERAOBJECT_TARGETDISTANCE] = 1
lst.append(cam)
return lst
def main():
cam_names = ['intro_1', 'stats_1', 'feature_1', 'feature_2', 'feature_3', 'feature_4',
'feature_5', 'feature_6', 'feature_7', 'feature_8', 'outro_1']
global CAMS_LST
CAMS_LST = []
# Create and setup Cameras
for i, cam in enumerate(cam_names, start=1):
CAMS_LST = create_camera(i, cam, CAMS_LST)
for cam in CAMS_LST[::-1]:
doc.InsertObject(cam)
outro_cal_tag = CAMS_LST[-1].MakeTag(1026818) # Camera calibrator tag
outro_cal_tag[c4d.CM_IMAGE_FILENAME] = "C:\\Users\\Manuel Magalhaes\\Desktop\\texture\\CommonLizard.jpg" # <-------- Add any image path.
outro_cal_tag[c4d.CM_LOUPE_SIZE_PIX] = 8
outro_cal_tag[c4d.CM_LOUPE_MAGNIFICATION] = 1
doc.SetActiveTag(outro_cal_tag)
c4d.EventAdd()
if __name__=='__main__':
main()