Tinson
10-18-2008, 07:42 PM
Hi! I made a rollout like this
try(destroyDialog test001)catch()
rollout test001 "Test"
(
group "Make things:"
(
button mkbox "make box" width:100
button mkcircle "make circle" width: 100
button mkstar "make start" width: 100
button deleteSpObj "deleteSlpineObj" width: 90
)
on mkbox pressed do
(
b1=box()
)
on mkcircle pressed do
(
c1=circle()
)
on mkstar pressed do
(
s1=star()
)
on deleteSpObj pressed do
(
***????????What should i type here??????????????????????***
)
)
createDialog test001
as you can see, this rollout can make box, circle and star. I want to make a button that only delete spline objects and the box stay in the scene. Just click the "deleteSlpineObj" button once and all spline objects will be gone.
I don't know how to do that. Thanks in advance
try(destroyDialog test001)catch()
rollout test001 "Test"
(
group "Make things:"
(
button mkbox "make box" width:100
button mkcircle "make circle" width: 100
button mkstar "make start" width: 100
button deleteSpObj "deleteSlpineObj" width: 90
)
on mkbox pressed do
(
b1=box()
)
on mkcircle pressed do
(
c1=circle()
)
on mkstar pressed do
(
s1=star()
)
on deleteSpObj pressed do
(
***????????What should i type here??????????????????????***
)
)
createDialog test001
as you can see, this rollout can make box, circle and star. I want to make a button that only delete spline objects and the box stay in the scene. Just click the "deleteSlpineObj" button once and all spline objects will be gone.
I don't know how to do that. Thanks in advance
