1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
CURVE Module documentation
INTRODUCTION
The Curve module gives access to the curves objects. Curves are used for many things in blender : creation of graphical objects, duplication of meshes, displacement of meshes, in IPOs for instance.
Blender has three main types of curves :
nurbs curves, each control point has three coordinates.
bezier curves, each control point has nine coordinates.
text curves, which represent graphical text objects.
functions of the module :
Get(Name:string) : returns the Curve whose name is Name.
get : same as Get
New(Name:string (optional)) : Creates a new Curve Object.
If the parameter Name is given, it will be the name of the Curve Object,
else the name will be choosen by blender.
Curve Object member functions :
getName() : Retreives the Curve Object name.
setName(Name : string) : Sets the Curve Object name.
getPathLen() : Retrieves the Curve Object path length.
setPathLen(len:int) : Sets the Curve Object path length.
getTotcol() : Retreives the parameter totcol of the Curve.
setTotcol(val:int) : Sets the parameter totcol
/*I do not know what means this parameter...*/
getFlag()Retrieves the mode of the Curve Object
setFlag(val:int) :Sets the mode of the Curve.
The mode of the curve is a combination of parameters.
Bits 0,1,2 : "Back", "Front" and "3D".
Bit 3 : "CurvePath" is set.
Bit 4 : "CurveFollow" is set.
getBevresol() : Retreives the bevel resolution of the curve.
setBevresol(val:float) : Sets the bevel resolution of the curve.
getResolu() : Retreives the U-resolution of the curve.
setResolu(val:int) : sets the U-resolution of the curve.
getResolv() : Retreives the V-resolution of the curve.
setResolv(val:int) : sets the V-resolution of the curve.
getWidth() : Retreives the bevel width of the curve.
setWidth(val:float) : Sets the bevel width.
getExt1() : Retreives the bevel height1 of the curve.
setExt1(val:float) : Sets the bevel height1 of the curve.
getExt2() : Retreives the bevel height2 of the curve.
setExt2(val:float) : Sets the bevel height2 of the curve.
getControlPoint(i:int) : Retreives the i-th control point.
Depending upon the curve type, returne a list of 4(nurbs) or 9(bez) floats.
setControlPoint(i:int, x1:float,...x4:float)
setControlPoint(i:int, x1:float,...x9:float) : Sets the i-th control point value.
getLoc() : Retreives the Curve location(from the center)
setLoc(x:float,y:float,z:float) : Sets the Curve location
getRot() : Retreives the Curve rotation(from the center)
setRot(x:float,y:float,z:float) : Sets the Curve rotation.
getSize() : Retreives the Curve size.
setSize(x:float,y:float,z:float) : Sets the Curve size.
Direct acces to the parameters values : You cann read and write the parameter XXX with the following syntax :
val = obj.XXX
or obj.XXX = val.
The possible parameters names are :"name","pathlen","resolu","resolv","width","ext1", and "ext2"
Submodules : No submodule.
|