Hi, I am trying to make a series of check on selected objects, before applying shell modifiers to it. Codes on Bottom of post.
1st check - if no objects selected, tell user to select plane, else if 1 or more objects
selected, move to 2nd check.
2nd check - if modifiers present on objects, tell user to collapse modifiers, else move to
3rd check.
3rd check - if objects selected not flat plane, tell user to select flat plane, else
apply shell modifiers to objects.
So far I have managed to script up to the 2nd check, however it works only when 1 object is selected. When i have multiple objects selected, this error occurs --Unknown property: 'modifiers' in $election. Can anyone help me to solve this problem and teach me how i can go about doing the 3rd check. Thanks!
Jason
on base150 pressed do
(
obj = selection as array
if selection.count == 0 then (messagebox "Select Plane" title:"Warning" beep:off ) else
(
if $.modifiers.count != 0 then (messageBox "Please collapse modifier stack!"
title:"Warning" beep:off) else
(
Shellmod = Shell()
Shellmod.selectOuterFaces = off
Shellmod.innerAmount = 0
Shellmod.outerAmount = 150
Shellmod.segments = 1
-- ModePanelup
max modify mode
ModPanel.AddModToSelection shellmod
)
)