Re: move adjancent keyframes and keep slope orientation

Date : Mon, 2 Apr 2007 17:28:53 -0500
To : XSI(at)Softimage.COM
From : "Oscar Juarez" <tridi.animeitor(at)gmail.com>
Subject : Re: move adjancent keyframes and keep slope orientation
you can lock the slope orientation on the keys menu of the animation editor

On 3/30/07, Kris Rivel <krisrivel(at)gmail.com > wrote:
Is there a way to move key frames using the "Plateau (horizontal for
local min & max)" and keep their slope orientation intact?  With it on,
if you move a key frame above its original value, the adjacent keyframes
that have the same value re-adjust their slope orientation.  I can't
seem to prevent them from doing that.  Here's a simple script that
animates a null to show what I mean.  Grab the 3rd keyframe and move it
up and down in the fcurve editor:

NewScene(null, null);
SetValue(" preferences.animation.tangentori", 1, null);
GetPrim("Null", null, null, null);
SaveKey("null.kine.local.posx,null.kine.local.posy,null.kine.local.posz",
1, null, null);
SetValue(" PlayControl.Key", 24, null);
SetValue("PlayControl.Current", 24, null);
Translate(null, 0, 4.49802037804679, 0, siRelative, siLocal, siObj,
siXYZ, null, null, null, null, null, null, null, null, null, 0, null);
SaveKey("null.kine.local.posx,null.kine.local.posy,null.kine.local.posz",
24, null, null);
SetValue("PlayControl.Key", 42, null);
SetValue("PlayControl.Current", 42, null);
SaveKey(" null.kine.local.posx,null.kine.local.posy,null.kine.local.posz",
42, null, null);
SetValue("PlayControl.Key", 60, null);
SetValue("PlayControl.Current", 60, null);
Translate(null, 0, 5.90916402606146 , 0, siRelative, siLocal, siObj,
siXYZ, null, null, null, null, null, null, null, null, null, 0, null);
SaveKey("null.kine.local.posx,null.kine.local.posy,null.kine.local.posz",
60, null, null);


Kris

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.