Notifications
Clear all

[Closed] A question anout Conditional statement ?

Help !
A question anout Conditional statement ,
toolmode.SelectionCenter()
toolmode.PivotCenter()

if toolmode.SelectionCenter() == true or if toolmode.PivotCenter() == true ,use maxscript how to write ?

4 Replies
 lo1
if toolMode.GetCoordCenter() == #local or toolMode.GetCoordCenter() == #selection do
(
  
)

or more optimized

if (local tMode = toolMode.GetCoordCenter()) == #local or tMode == #selection do
(

)

Hi lo,
I use max2009,run your code,return many messge.

 lo1

Oh I’m sorry, made a typo. This is correct syntax.

if GetCoordCenter() == #local or GetCoordCenter() == #selection do
(

)

Thanks Lo!