Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow AnimationTree's TimeScale animation node to have negative values so animations can be played backwards #21665

Closed
Boothand opened this issue Sep 1, 2018 · 8 comments

Comments

@Boothand
Copy link

Boothand commented Sep 1, 2018

Issue description:

It currently cannot go below 0, so can't be used to play animations backwards. The alternative seems to be an additional animation asset just for playing it backwards.
https://i.imgur.com/wysX8mu.png

@Xrayez
Copy link
Contributor

Xrayez commented Sep 13, 2018

I support this feature strongly because many animations are cyclic in nature (walking, falling, jumping cycles) and can be played backwards and therefore easily reused. Having to create another animation just for the character to walk left and right is really time consuming and can become a real workflow bottleneck.

Another reason is that when you change character's moving direction it's much easier to modify time scale dynamically on the same animation in order to remain the walking animation in sync with moving parts instead of having to seek the correct pose in other animation.

@akien-mga akien-mga modified the milestones: 3.1, 3.2 Dec 17, 2018
@guzzard
Copy link
Contributor

guzzard commented Mar 18, 2019

@Boothand @Xrayez it's possible to set a negative value through script but it has some issue with looping animations though (#27215).

@rcorre
Copy link
Contributor

rcorre commented Mar 27, 2019

If this is an "enhancement" rather than a bug, should the docs claim it is possible?

Allows scaling the speed of the animation (or reverse it) in any children nodes

@akien-mga akien-mga modified the milestones: 3.2, 4.0 Nov 14, 2019
@Smashalidis
Copy link

Just came here to support this - the docs claimed it was possible so I've been on a wild goose chase. This would be a very time saving and efficient addition

@KoBeWi
Copy link
Member

KoBeWi commented Jan 7, 2022

Resolved by #53819

@KoBeWi KoBeWi closed this as completed Jan 7, 2022
@and3rson
Copy link
Contributor

and3rson commented Jul 21, 2022

I'm on 3.5-rc6 and TimeScale won't let me set a value lower than -1 in the editor... Is this a regression or was this merged into the 4.x branch only? @KoBeWi

@KoBeWi
Copy link
Member

KoBeWi commented Jul 21, 2022

Yes it's 4.0 only. Not backported due to difficulties (see discussion in the PR I linked).

@Ternvein
Copy link

Currently v3.5 documentation claims that negative time scale is possible, but it is not. Either documentation or code should be fixed then. I think that this feature is needed for v3.5 (or at least v3.6) and it's basic in nature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants