Timeslider marker scripting

Timeslider marker scripting

brurpo
Advocate Advocate
1,035 Views
2 Replies
Message 1 of 3

Timeslider marker scripting

brurpo
Advocate
Advocate

Hi there!

I am trying to do some automation that, among other things, will add markers using the new timeslider bookmarks.

But I was not able to find any doc for it using mel or python and even echo all commands does not return anything. Is it possible?

Thanks!

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

brurpo
Advocate
Advocate
Accepted solution
In case anyone stumbles at this. Timeslider bookmarks are made through nodes (not sure why the command does not return them in the script editor)
But here is a snippet of my code where I create them;
 

 

 

$BRP_TS = `createNode "timeSliderBookmark"`;
  $BRP_TS = `rename $BRP_TS ("SHOT_" + string($i +1))`;
  setAttr -type "string" ($BRP_TS + ".name") ("SHOT_" + string($i +1));
  setAttr ($BRP_TS + ".color") -type double3 (rand(0.3,1.0)) (rand(0.3,1.0)) (rand(0.3,1.0)) ;
  setAttr ($BRP_TS + ".timeRangeStart") $inF;
  setAttr ($BRP_TS + ".timeRangeStop") $outF;

 

 

 
Message 3 of 3

regan_music
Participant
Participant

omg thank you. Lifesaver. Why Maya doesn't log some of its more interesting actions I'll never understand. I'd also like to auto-populate the GameExporter's anim clips based on bookmarks but that's another thing that's tricky to track down in Maya.

0 Likes