[Closed] how do I set to minutes/sec/frames/ticks
how do I set to minutes/sec/frames/ticks in my script ? Im sure its something simple but I cant remember .
thanks for reading
From the Maxscript Help:
The at time <time> context corresponds to the 3ds Max time slider. Any animatable property references will yield their interpolated values for the specified time. If the Animate button is on, or the script is also in an animate on context, keyframes are generated at the specified time when an animatable property of a 3ds Max object is changed.
Setting an at time context does not affect the 3ds Max time slider. The time associated with the time slider can be queried and set using the sliderTime global variable.
-Eric
sorry but thats not what I mean . I want to set max to minutes/sec/frames/ticks right now its set to 25 fps Pal . I want it to be minutes/sec/frames/ticks,Ive made a script to read midi files it animates a set of objects using the timing and note on data from the midi file but I need to set max to minutes/sec/frames/ticks by hand before I run the script , so it would be nice it my script did this for me you see what I mean ?
You want to set what to minutes/sec/frames/ticks, the timeline, values in your script, time to complete an operation, etc? You need to be more specific.
-Eric
yeah my first post was a bit short . sorry anyway hope the post above makes it a bit more clear
Why do you need to change the time display? You should be able to read in the values and convert that to frames/ticks/etc. The only way I found to change the time display value is through Avgaurd Maxscript Extensions 7.09 or later.
-Eric
Not quite sure what you mean either… if all you want to do is change the time format then just click on the time configuration button on the lower right side of the screen below the playback controls. If that is not what you meant then you need to clarify a bit.
Hope that helps…
ok . Im reading in that data from a midi file , and the data is at ticks resolution , say the first note on message starts at 2 frames 1 sec and 23 ticks or something like that , if max is not set to M/F/S/T I get a small error ( max is rounding it off to a frame maybe ?)and if Im using a 5 minute tack then these small errors add up and by the end of the track the animation is way out of sync ,as I have said before if I have max set frames/ticks the sync is fine even for a tack running for 10 minuites . so you see this is why I want to set it in the script .by the way Im running max 9. thanks for the replys anyway guys
“just click on the time configuration button ” yes I know this as I said in my post before but I want the script to do this for me . thanks anyway dude
My bad, I must have missed the part where you said you needed to change it within the script…pixel monkey is right then, thats the only way I am aware of to change it like you want. good luck