gear_mc
 All Classes Namespaces Functions Variables
Functions
gear.xsi.fcurve Namespace Reference

Functions

def getFCurveValues
 FCURVE. More...
 
def drawFCurve
 Set FCurve Keys. More...
 
def getFCurveKeys
 Return the keys of the fcurve as an 2 dimensional array. More...
 
def copyFCurve
 Copy the keys of source fcurve on target fcurve. More...
 
def getFirstAndLastKey
 Get First and Last Key for given controlers. More...
 

Detailed Description

This file is part of GEAR_mc.
GEAR_mc is a fork of Jeremie Passerin's GEAR project.

GEAR is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/lgpl.html>.

Author:     Jeremie Passerin    geerem@hotmail.com  www.jeremiepasserin.com
Fork Author:  Miquel Campos       hello@miqueltd.com  www.miqueltd.com
Date:       2013 / 08 / 16
Author
Jeremie Passerin

Function Documentation

def gear.xsi.fcurve.copyFCurve (   target,
  source 
)

Copy the keys of source fcurve on target fcurve.

Parameters
targetFCurve - The target FCurve (the one we write on).
sourceFCurve - The source FCurve.
Returns
def gear.xsi.fcurve.drawFCurve (   fcv,
  keys,
  interpolation = c.siCubicInterpolation,
  extrapolation = c.siConstantExtrapolation 
)

Set FCurve Keys.

Parameters
fcvFCurve - The FCurve to edit.
keysList of Tuple (Time, Value) - The tuple (Key, Value) you want to add on the curve.
siInterpolationString - Interpolation of the curve.
Returns
the fcurve.
def gear.xsi.fcurve.getFCurveKeys (   fcv)

Return the keys of the fcurve as an 2 dimensional array.

Parameters
fcvFCurve
Returns
list
def gear.xsi.fcurve.getFCurveValues (   fcv,
  division,
  factor = 1 
)

FCURVE.

Get FCurve Values ====================================== Get X values evently spaced on the FCurve.

Parameters
fcvFCurve - The FCurve to evaluate.
divisionInteger - The number of division you want to evaluate on the FCurve.
Returns
List of Double - The values.
def gear.xsi.fcurve.getFirstAndLastKey (   controlers)

Get First and Last Key for given controlers.

Parameters
controlersCollection of X3DObject - Collection of controler.
Returns
a tuple (first Key, last key), False if there is no key on selection.