Notifications
Clear all

[Closed] Any maxscript function for the "Re-scale Time" in Time Configuration?

I find scaletime method,but it would only apply on single object and doesn’t affect Link_Constriant object.
I need just what the Re-scale Time in Time Configuration dialog does:rescale all keys of all objects,globally.
Thank you.

5 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

scaletime method doesn’t scale (change) link frame number because it’s not an animatable controller. you have to change it yourself.

scaletime is mapped functions. for all other animatable controllers used with nodes you can scale them all by:

scaletime objects <interval> <scale_factor>

So is there a corresponding method for the “Re-scale Time” in the Time Configuration Dialogue as my attached image shows?Because that panel can scale any keys including Link_ctrl keys.And what I need is just like that,cause I have to handle a character with different kinds of animation keys.The rigging and animation include bipeds,geometry bones and link_ctrls.The aim is to scale the overall animation time,e.c.,make it 1/2X speed or 1/3X speed or 1/4X speed.Everything works smoothly by scaletime method until there comes Link_Ctrl animation.Just don’t know how to scale the Link_Ctrl keys time.

if that dialog works for you just use it. if you have 100 animation files and have to spend 5 minutes to scale a file, you need 500 minutes (less than 10 hours).
but you are already waiting for a solution more than two days. where is the logic?

it should be an action to run this dialog, and using dialog monitor and ui accessor you can set spinner value and push the button.

there are many examples of this hack on this forum. but if i were you i would make the job first.

Its not me wanting to be lazy,its exactly my job to create such a tool for the animation team.And there are thousands of animation clips to be prepared and thats why they need such a tool.I considered the dialog monitor approach,but that would not be my first choice I guess.I think 3ds Max has its unique “re-scale time” GUI function than any other tools that I know,I just think it would be sensible to open it in maxscript API.My last resort would be using the “setFrameNo” method and calculate the frames within codes,which would be clumsy in comparison with a single clear “re-scale time” method.Thank you for your patient answers,man!