Hello,
I cannot find any documentation for Mel or Python commands that allow for creating, editing, querying or ANYTHING for animation timeline Bookmarks.
Echoing all commands gives:
timeField
menu bookmarkMenu;
buildBookmarkMenu -type bookmarkAnimCurves bookmarkMenu;
and none of these commands or documentation are useful.
Is there a way to use MEL or Python to handle TimeLine bookmarks?
Thanks
Solved! Go to Solution.
Solved by Kahylan. Go to Solution.
Hi!
When you create a timeslider Bookmark, you create a corresponding timeSliderBookmark Node. This node stores the information of the Bookmark in attributes (.name, .color, .timeRangeStart, .timeRangeStop), its a simple matter of finding the right Bookmark using getAttr on the Name attribute and then using setAttr to do whatever change you need to make.
You can get all timeSliderBookmarks by using:
import maya.cmds as mc
bM = mc.ls(type = "timeSliderBookmark")
I hope this helps!
Can't find what you're looking for? Ask the community or share your knowledge.