hello c4d guys!
i have a problem with updating my scene during the rendering. in the viewport it's working. so i don't understand exactly how the scene updating mechanism is working and need help from you experts :)
what i try to do:
i have a weird alembic camera form maya, with a animated film back offset. the alembic camera in c4d does not interpret this correctly. so i calculated the translation formula and wrote a python script. as i said in the viewport it's doinge exactly what i want, but during rendering it's just frozen on the first frame. i tested it with the c4d.EventAdd() command, but it's still not working. here is my code:
shotNumber = '0050'
alembicCam = 'abcCam_' + shotNumber
standardCam = 'cam_' + shotNumber
acbCamObj = doc.SearchObject(alembicCam)
offsetX = acbCamObj[1028637,5103,1118]
offsetY = acbCamObj[1028637,5103,1119]
newCam = doc.SearchObject(standardCam)
newCam[c4d.CAMERAOBJECT_FILM_OFFSET_X] = offsetX * 0.042107036086
newCam[c4d.CAMERAOBJECT_FILM_OFFSET_Y] = (offsetY * 1.0043387434) * -1
thanks a lot for any help!