Description


It provides methods for editing a Time Bookmark.


Object


TimeBookmark(name=string)
TimeBookmark(startFrame=int)
TimeBookmark(startFrame=int, endFrame=int, color=int, name=string)



Functions


NameArgument typesReturnsDescription
setStartFrameintsuccess (bool)Sets the start frame of the Time Bookmark.
setEndFrameintsuccess (bool)
Sets the end frame of the Time Bookmark.
setColorintsuccess (bool)
Sets the color of the Time Bookmark. Available colors: 

kWhite

kDarkWhite

kLightGray

kGray

kDarkGray

kBlack

kLightPurple

kPurple

kDarkPurple

kLightBlue

kBlue

kDarkBlue

kLightTurquoise

kTurquoise

kDarkTurquoise

kLightGreen

kGreen

kDarkGreen

kLightYellow

kYellow

kDarkYellow

kLightOrange

kOrange

kDarkOrange

kLightRed

kRed

kDarkRed

kLightPink

kPink

kDarkPink

setNamestringsuccess (bool)
Sets the name (label) of the Time Bookmark.
deleteN/Asuccess (bool)
Deletes the Time Bookmark.
getStartFrameN/AintReturns the start frame of the Time Bookmark.
getEndFrameN/A
intReturns the end frame of the Time Bookmark.
getColorN/A
intReturns the index color of the Time Bookmark.
getNameN/A
stringReturns the name (label) of the Time Bookmark.

Examples


This sets the label of a time bookmark at frame 40:

from animBot import OpenAnimBot as OA

myTimeBookmark = OA.TimeBookmark(40)
myTimeBookmark.setName("run cycle")


This nudges the time bookmark 5 frames:

myTimeBookmark.setStartFrame(myTimeBookmark.getStartFrame() + 5)


This creates a Time Bookmark and set the start frame to 66:

myTimeBookmark = OA.createTimeBookmark()
myTimeBookmark.setStartFrame(66)


This deletes the Time Bookmark at frame 50

myTimeBookmark = OA.TimeBookmark(50)
myTimeBookmark.delete()