xsi animation methods, keys, mirror animation, apply action... test More...
Classes | |
| class | PlayControl |
| PLAYCONTROL. More... | |
Functions | |
| def | getKeyableParameters |
| KEYS. More... | |
| def | setKey |
| Set a key on keyable parameters for given controler at current keyable frame. More... | |
| def | createMirrorCnxTemplate |
| MIRROR. More... | |
| def | addMirroringRule |
| Adding a mirroring rul to the connection grid for given controlers. More... | |
| def | mirror |
| Transfer the pose/animation of givben controlers according to the rules define in the connection template. More... | |
| def | invertSource |
| Inverse the source value. More... | |
| def | applyAction |
| ACTION. More... | |
Variables | |
| string | MIRROR_PROP_NAME = "mirror_cnx" |
xsi animation methods, keys, mirror animation, apply action... test
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
| def gear.xsi.animation.addMirroringRule | ( | ctl, | |
| cnx_grid, | |||
inversed_params = [], |
|||
delUnused = False |
|||
| ) |
Adding a mirroring rul to the connection grid for given controlers.
| ctl | X3DObject - Controler to add to the mirroring template |
| cnx_grid | Grid - The connection grid |
| inversed_params | List of String - List of the fullname of parameters to inverse |
| delUnused | Boolean - True to remove rules that mirror to themself |
| def gear.xsi.animation.applyAction | ( | model, | |
| action_name, | |||
controlers = None |
|||
| ) |
ACTION.
Apply action to model for given controlers
| model | Model - model to apply the action to |
| action_name | String - Name of the action to apply XSICollection - Controlers to apply the action to (None, to apply to all) |
| def gear.xsi.animation.createMirrorCnxTemplate | ( | model, | |
in_controlers = None |
|||
| ) |
MIRROR.
======================================================== Create the mirror connection template
| model | Model - Model to add the template to |
| in_controlers | XSICollection - Controlers to add to the template |
| def gear.xsi.animation.getKeyableParameters | ( | in_controlers | ) |
KEYS.
======================================================== Return a collection of keyable parameters for input objects
| in_controlers | XSICollection |
| def gear.xsi.animation.invertSource | ( | source | ) |
Inverse the source value.
| source |
| def gear.xsi.animation.mirror | ( | controlers = xsi.Selection, |
|
animation = False, |
|||
frame_offset = 0, |
|||
considerTime = False, |
|||
frame_in = 0, |
|||
frame_out = 0 |
|||
| ) |
Transfer the pose/animation of givben controlers according to the rules define in the connection template.
| controlers | XSICollection - Controlers to mirror |
| animation | Boolean - True to mirror the FCurve and not only the static value |
| frame_offset | Integer - Offset original animation |
| considerTime | Boolean - True to use the in and out frame |
| frame_in | Integer - Start frame of animation to mirror |
| frame_out | Integer - End frame of animation to mirror |
| def gear.xsi.animation.setKey | ( | controlers = xsi.Selection | ) |
Set a key on keyable parameters for given controler at current keyable frame.
| controlers | an XSI Collection of controler, if None, current selection is used |
1.8.5