Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / [Solved]Getting current frame
  RSS 2.0 ATOM  

[Solved]Getting current frame
Rate this thread
 
46763
 
Permlink of this thread   Subscribe to this thread
avatar
  • Beat1823
  • Posted: 31 August 2010 04:25 AM
  • Total Posts: 20
  • Joined: 04 August 2010 04:49 AM

Hey forum,

I’m trying to write a script that, for each shot imported, it checks the first and life frames time, with the last shots. So if a shot is frames 145-256, and the shot after is like 123-200, I want it to check something like

if start_new > start_old
start_old = start_new

so after every file is done, it will have the min and max of the whole shot.

So what I need to know is how to return the value of the start and end frame values.

I wasnt sure there was a command for it, but if there inst a exact command i was gonna use something like..

lPlayer = FBPlayerControl()
lPlayer.GotoEnd()
<--- some command that finds the value of the current frame.
lPlayer.GotoStart()
<--- some command that finds the value of the current frame.

Any ideas?

*Edit*
This forum must hate me by now, Whenever I get to the point I feel like I need to post, I post and then it hits me.

lSystem = FBSystem()
new_frame = lSystem.CurrentTake.LocalTimeSpan.GetStop().GetFrame(True)



Replies: 1
/userdata/avatar/g51ta224h.jpg

Nice going. Thx for informing with the update.
Cheers!

Author: OmniZ3D

Replied: 24 October 2011 06:19 PM  




   
  Settings Choose Theme color: