Synopsis
listTimeBookmarks() |
This command returns a list of all TimeBookmark objects present in the scene.
Examples
This prints the name, start and end frames for all time bookmarks in the current scene:
from animBot import OpenAnimBot as OA for timeBookmark in OA.listTimeBookmarks(): print("name:", timeBookmark.getName()) print("start frame:", timeBookmark.getStartFrame()) print("end frame:", timeBookmark.getEndFrame())
This prints the start and end frames for all time bookmarks in the scene that are blue:
from animBot import OpenAnimBot as OA for timeBookmark in OA.listTimeBookmarks(): if timeBookmark.getColor() != OA.kBlue: continue print("start frame:", timeBookmark.getStartFrame()) print("end frame:", timeBookmark.getEndFrame())