Message 1 of 4
loop issues with object class
Not applicable
02-14-2012
04:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey, I try to do this little script to delete every lights and cameras depending of the choice of the user :
But the probleme is when a I check one of the checkbox I receive this error :
I can't find where the problem come from.
And the weird thing when I execute directly this line it's works :
Thanks
rollout test "B71 Creative"
(
checkbox del_lit "Lights"
checkbox del_cam "Cameras"
button export_obj "delete"
on export_obj pressed do
(
if del_lit.state == true do
(
for obj in lights do
(
delete obj
)
)
if del_cam.state == true do
(
for obj in cameras do
(
delete obj
)
)
)
)
createDialog test 100 70
But the probleme is when a I check one of the checkbox I receive this error :
-- Error occurred in export_obj.pressed(); filename: D:\script\; position: 259; line: 14
-- Frame:
>> MAXScript Rollout Handler Exception:
-- Unknown system exception <<
I can't find where the problem come from.
And the weird thing when I execute directly this line it's works :
for obj in lights do
(
delete obj
)
for obj in cameras do
(
delete obj
)
Thanks