Welcome to mirror list, hosted at ThFree Co, Russian Federation.

testipo.py « doc « api2_2x « python « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 89db92f03c2cb15ca1c1d0827786215f08091ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import Blender

ipo = Blender.Ipo.Get()
print "Available ipos : ",ipo

ipo = Blender.Ipo.Get('ObIpo')# hope there is an ipo named "ObIpo"...

    
for prop in  ["Name","Blocktype","Showkey","Pad","Rctf"]:
    val = eval("ipo.get%s()"%prop)
    print prop,"-->",val
    #exec("ipo.set%s(%s)"%(prop,val))
      
try :
    val = ipo.getCurveBP(0)
    print "CurveBP -->",val
except  : print "error BP"      
val = ipo.getNcurves()
print "NCurves -->",val

curvebeztriple = ipo.getCurveBeztriple(0,0)
print "curvebeztriple",curvebeztriple
ipo.setCurveBeztriple(0,0,[1,2,3,4,5,6,7,8,9])
print  ipo.getCurveBeztriple(0,0)