Blender (jusqu' 2.49)
Python
Module Object 
fonction insertIpoKey
    Début   Index
précédentModifiers type value
Add Extend 2 All Select IPO Suivant

 

Cette fonction attend une valeur sous la forme d'un entier mais aucune documentation officielle ne fournit de renseignement sur les valeurs admises et leurs correspondances.
 

LOC              0
ROT              1
SIZE             2
LOCROT           3
LOCROTSIZE       4
PI_STRENGTH      5
PI_FALLOFF       6
PI_SURFACEDAMP   8
PI_RANDOMDAMP    9
PI_PERM          10 

Exemple d'utilisation dans un script qui ajoutera un tableau d'ipo sur tous les objets sélectionnés.
 

#!BPY

""" 
Name: 'Add ipo 2 all obj.'
Blender: 237
Group: 'Object'
Tip: 'Add a new ipo curve to all selectected objects'
"""
"""
(c) jm soler 14/04/2006
""" 
import Blender

LOC =            0
ROT =            1
SIZE =           2
LOCROT=          3
LOCROTSIZE =     4
PI_STRENGTH =    5
PI_FALLOFF  =    6
PI_SURFACEDAMP = 8
PI_RANDOMDAMP  = 9
PI_PERM        = 10 

IPOLIST=[LOC,ROT]

def SETIPO(OBJ,IPOLIST):
 for IPO in IPOLIST:
  OBJ.insertIpoKey(IPO)
 

[SETIPO(OBJ,IPOLIST) for OBJ in Blender.Object.GetSelected() if not OBJ.getIpo()] 


 
précédentModifiers type value
 Add Extend 2 All Select IPO Suivant
Vers le  Haut de page

Les questions concernant cette page  peuvent être posées sur  :
 news://news.zoo-logique.org/3D.Blender


 

 

Livre en franais
Blender : apprenez, pratiquez, Crez, livre, Ed. Campus Press, coll. Starter Kit
Blender Starter Kit

Forum
FAQ
Lexique
Didacticiels
Compilations
Blender2KT
Dbuter
Modelage
Blender python
Materiaux
Lumire
Animation
API python (eng)
Archives nzn
Statistiques
Doc flash Sculptris
SiteMap 3D
Galerie Sculptris

mon site de dmos sur youtube