currentTime on spinner
Hi guys
I have an issue to get the currentTime in real time while playing an animation in a spinner.
I can easily get the CurrentTime in a spinner like this:
spn_CT.value = currentTime
but this way it's not in real time while playing an animation.
If anyone have an idea, thanks a lot :)
Comments
No one in particular, just
No one in particular, just read it sometimes.
But I know you can do some very nice stuff with, I already give it a try, but it really hurt my brain :p
Since I don't have any good knowledge on programing, for know I prefered to focus on mxs.
I will also begin to learn C, but mostly I'm a 3D artist so I prefer to do 3D stuff than scripting ^^
thanks for the help anyway :)
.
This will prints the curent frame number as it is shown in the time slider:
Or you can use this:
Tools and Scripts for Autodesk 3dsMax
Thanks for your
Thanks for your help.
Unfortunately, this is not what I want, and barigazi give me a great solution ^^
Hi barigazi, always here to
Hi barigazi, always here to help me :)
Thanks but it's not working (actually it's the way I defined the spinner).
Maybe you didn't understand what I mean, so i'll try to explain a bit better.
for example, if you use this:
fn time_p = print currentTime registerTimeCallback time_p
you'll see in the listener that you print every frame while playing the animation, and this is what I want in my spinner.
=> to delete the callback if you try it :)
...
Are you vant to unregisterTimeCallback if you spinner value is greater then or lower then animation range?
bga
...
If Yes then
bga
...
bga
...
If you vant to get slider time in seconds then try like this
slidertime.frame/framerate
bga