Hiya,
I'm trying to clear the bone pos channel, but I keep getting an error. here is what I'm doing:
mybone.fAnimPos:Clear()
as
mybone.fAnimPos:StoreValue()
works, and Clear is in the same class as StoreValue, so I thought they'd be the same....
Anyone use this and can tell me how to get it to work?
Thanks,
Mike
Using Clear()?
Moderators: Víctor Paredes, Belgarath, slowtiger
Re: Using Clear()?
When I was updating my Nudge scripts for version 7, I noticed that the Clear method now requires an integer argument whereas before it didn't require any arguments at all. The first value I tried was 0, which appeared to work at first, but I noticed some problems when the layer was shifted by the Sequencer. As a wild guess, I then tried layer:TotalTimingOffset(), and it seemed to do the trick, at least for my particular use of it.Dodgy wrote:Hiya,
I'm trying to clear the bone pos channel, but I keep getting an error. here is what I'm doing:
mybone.fAnimPos:Clear()
as
mybone.fAnimPos:StoreValue()
works, and Clear is in the same class as StoreValue, so I thought they'd be the same....
Anyone use this and can tell me how to get it to work?
Thanks,
Mike
You can try this value as well, but realise that it's a total guess on my part, and I have no idea what this parameter is actually for. Otherwise, you can try emailing Mike Clifton and ask him what parameter we should provide for this method.
It works, so I'm going to upload the script soon as I can get an ftp connectionTry using:
mybone.fAnimPos:Clear(0)
A channel always needs at least one keyframe to store the initial
value. The number you pass to the Clear function tells the channel
what frame to keep as the only one. Typically, this is frame 0.
-Mike