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

Date : Sat, 10 Jun 2006 17:18:27 +1000
To : XSI(at)Softimage.COM
From : "Markus Daum" <markus.daum.3d(at)googlemail.com>
Subject : FCurve Editor: Scale key values (Sy) by scripting?
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

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.