ScriptSpot home

Forum topic · General Scripting

If clause help

By jaber · 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)
jaber

validMofier !?

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

Thanks anyway.

Pio Raffaele Fina

hi,
you can use validMofier method, check maxscript help