Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No Mel or Python commands to Query Timeline Bookmarks

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
JamesJ3D
661 Views, 2 Replies

No Mel or Python commands to Query Timeline Bookmarks

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

2 REPLIES 2
Message 2 of 3
Kahylan
in reply to: JamesJ3D

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
in reply to: JamesJ3D

Million thanks !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report