Forum

Stopping an NLA animation midpoint

11 May 2016 03:28
I have an NLA animation strip that I'd like to play only portions of, depending on html button clicks.. In this case, I have an animation that runs to 127 frames, but I want the playback to stop at 77, and it won't. I guess something must be missing:

m_nla.set_frame(1);
		m_nla.set_range(1, 77);
		m_nla.play();
		m_nla.reset_range();
11 May 2016 11:09
You should remove "m_nla.reset_range();", because it clears the range back to its default values.
07 June 2016 09:23
Hey
does this reaply help to stop any NLA ( or timeline animation ) to atop at any point of click ?
OR is there supposed to be some logical node added to do this separately?

can you specify a little sample?
Visualization expert!
07 June 2016 10:19
Hello.

If you want to stop the scene NLA animation (timeline animation), you can call

m_nla.stop()


You can test this functionality in Viewer:
07 June 2016 10:35

OR is there supposed to be some logical node added to do this separately?
Hello!

There is a special logic node "Stop Timeline" in "Animation" section of logic nodes list
Blend4Web Team - developer
Twitter
LinkedIn
 
Please register or log in to leave a reply.