Redraw timeline to make new keyframes visible
Moderators: Víctor Paredes, Belgarath, slowtiger
-
- Posts: 303
- Joined: Thu May 13, 2010 2:01 pm
Redraw timeline to make new keyframes visible
I always run into this problem when im setting new keys on the timeline in LUA that it will only refresh and show the new keyframes when the timeline indicator is moved. Does anybody know that code that will make the keyframes show up in the timeline at the moment of creation? Thanks.
- hayasidist
- Posts: 3514
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: Redraw timeline to make new keyframes visible
I think it's moho:UpdateSelectedChannels() but that may be dependant on exactly which channels you're not seeing updated
http://www.aslua.com/index.php?show=met ... nels&id=58
there's also moho:NewKeyframe(channel)
http://www.aslua.com/index.php?show=met ... rame&id=57
http://www.aslua.com/index.php?show=met ... nels&id=58
there's also moho:NewKeyframe(channel)
http://www.aslua.com/index.php?show=met ... rame&id=57
-
- Posts: 303
- Joined: Thu May 13, 2010 2:01 pm
Re: Redraw timeline to make new keyframes visible
Thanks. I got it working.
For channel codes check the lm_channel_codes.lua in utilities folder.
Code: Select all
moho:NewKeyframe(CHANNEL_BONE)
moho.layer:UpdateCurFrame()