Page Menu
Home
Search
Configure Global Search
Log In
Files
F1765
test-knotflags.py
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Gergely Erdelyi (dyce)
Nov 13 2013, 12:59 PM
Size
533 B
Subscribers
None
test-knotflags.py
View Options
from
Blender
import
Scene
,
Curve
,
Object
,
Redraw
print
60
*
"-"
print
"Testing knotflags patch"
# Make a new object
cobj
=
Object
.
New
(
'Curve'
)
c
=
Curve
.
New
(
'MyCurve'
)
cobj
.
link
(
c
)
s
=
Scene
.
getCurrent
()
s
.
link
(
cobj
)
# Add some control points
c
.
appendNurb
([
-
1.5
,
0.0
,
0.0
,
1.0
])
c
[
0
]
.
append
([
-
1.0
,
1.0
,
0.0
,
1.0
])
c
[
0
]
.
append
([
1.0
,
1.0
,
0.0
,
1.0
])
c
[
0
]
.
append
([
1.5
,
0.0
,
0.0
,
1.0
])
# Set the flag to 'Endpoint'
c
[
0
]
.
flagU
=
2
c
[
0
]
.
setFlagV
(
2
)
print
"c[0].getFlagU ="
,
c
[
0
]
.
getFlagU
()
print
"c[0].flagV ="
,
c
[
0
]
.
flagV
Redraw
()
File Metadata
Details
Mime Type
text/x-python
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/79/c9c0f73dde4e0bce3bf9c7203475
Event Timeline
Log In to Comment