Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

No Mel or Python commands to Query Timeline Bookmarks

No Mel or Python commands to Query Timeline Bookmarks

JamesJ3D
Participant Participant
1,098 Views
2 Replies
Message 1 of 3

No Mel or Python commands to Query Timeline Bookmarks

JamesJ3D
Participant
Participant

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

0 Likes
Accepted solutions (1)
1,099 Views
2 Replies
Replies (2)
Message 2 of 3

Kahylan
Advisor
Advisor
Accepted 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!

Message 3 of 3

JamesJ3D
Participant
Participant

Million thanks !

0 Likes