import FilmLightAPI
# Connect to the current scene
scene = FilmLightAPI.Scene()
# Access timeline
timeline = scene.timeline
# Start processing shots
for shot in timeline.shots:
grade_version = shot.gradeVersion
keywords = shot.keywords
flag = shot.flag
duration = shot.duration
# Filtering logic
if grade_version == "ungraded" and "review" in keywords and flag == "blue":
print(f"Shot: {shot.name}")
print(f"Duration: {duration} frames")
print("Status: Needs grading & marked for review\n")