Page 2 of 2
Re: Copying/moving keyframes within the same layer channel?
Posted: Tue Mar 22, 2016 2:33 pm
by synthsin75
hayasidist wrote:synthsin75 wrote:You can see all the channels and their subchannels by running Scripts>Script Writing>List Channels.
Point motion has no subchannels. Selected point motion is its own channel.
sorry to disagree Wes- but point motion does have subchannels (and selected point motion has subchannels if more than one point is selected)
(screenshot here if you want to take a look:
http://i128.photobucket.com/albums/p196 ... malgap.png)
and, whilst I haven't used it -- AnimChannel:SetKeyWhen(id, when) just might allow an existing id to be relocated?
Oh, you're right. I didn't think subchannels were dependent like that. Good to know.
And yep, that's the function to use. It moves the key and maintains interpolation. Good find.
Re: Copying/moving keyframes within the same layer channel?
Posted: Thu Mar 24, 2016 7:53 am
by rylleman
lehtiniemi wrote:... I'll post here my finished subroutines when I get to it. Thanks for help!!!
Have you made any progress? I need a keyframe shift/move-script and found this thread. If you've done the work I'd be happy to not put in the hours to create one.

Re: Copying/moving keyframes within the same layer channel?
Posted: Thu Mar 24, 2016 8:48 am
by lehtiniemi
rylleman wrote:lehtiniemi wrote:... I'll post here my finished subroutines when I get to it. Thanks for help!!!
Have you made any progress? I need a keyframe shift/move-script and found this thread. If you've done the work I'd be happy to not put in the hours to create one.

I have! I'll post some snippet later. You can also check the Time Tool that I just posted in Script-forum, see the function ....ToChannel (can't remember what it's called exactly). That goes through the channels within the layer and moves them. The key-thing to moving was to use function SetKeyWhen which sets a new keyframe for an existing key by id.