I’m trying to get a certain object and find the first and last frame of the object. I have the following below so far, where it’s getting the camera object. I know to use animationRange to get the whole animation range, but i’m unsure how to specify it to one object.
camera_VR = "VR"
for camera in rt.cameras:
if "VR" in camera.name:
vrCam = rt.getNodeByName(camera_VR)
timeRange = rt.getTimeRange(vrCam)
start_frame = timeRange.start
end_frame = timeRange.end
print(start_frame)
print(end_frame)