Re: FCurve Editor: Scale key values (Sy) by scripting?

Date : Mon, 12 Jun 2006 09:00:33 +0200
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: FCurve Editor: Scale key values (Sy) by scripting?
Last time I had been into fcurve scripting the FCurve Editor turned out to be a blackbox. At that time fiddling around with the fcurves themselves as you already did was the only option.

   -André


Markus Daum wrote:

Hi everybody,

I wonder if there is a way to somehow access the functionality in the FCurve Editor by scripting, that allows you to scale all selected keys (or all keys of a selected fcurve) by a certain value? I mean the method / command that is connected to the "Sy" field in the FCurve Editor UI. The beauty of this thing is, that is automatically scales all tangents of the affected keys accordingly.

I wrote a little script that does the scaling for all keys of an fcurve one by one, but for heavier animation (i.e. many fcurves with many keyframes) it's rather slow and some people still claim that my script doesn't scale the tangents properly in all cases (which is obviously just an user error ;-).

Have a nice weekend!

Cheers,
Markus

--
Markus Daum
Animation TD
Character Dpt - Animal Logic Film


---
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.