ScriptSpot

Forum topic · General Scripting

If clause help

By Jaber_Zaker_Joybari · 2014-08-22

Description

Hi everybody
I have an if clause problem

example
IF (selection.count >0) then ( ) else ( messageBox "There is no objects selected, Please select objects and try again")

now problem:
so come to think having Bend modifier and i need an If clause like this:

1: If there is a bend modifier on selected objects then ( ) and if there is no bend modifier show this message else( )

2: If the specific modifier has no animation show this message else ( )

Thanks in advance

Comments (3)

validMofier !?

Jaber_Zaker_Joybari · 2014-08-29

sorry
which version of max you are working? 2011 nothing similar (validMofier)

Thanks anyway.

Raffx · 2014-09-02

validModifier sorry!!:-)

Raffx · 2014-08-26

hi,
you can use validMofier method, check maxscript help