Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 26-08-2004 , 11:24 AM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695

if, or

Can someone tell me the synyax for MEL to to a if/or statement? I know in javascript it would be ||, but I can't find the command anywhere in the crappy Maya docs.

Thanks.

# 2 26-08-2004 , 12:05 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
It's the same..

== equal to
&& and
|| or
! not
> greater than
>= greater than or equal to
< less than
<= less than or equal to

for example: if( $a < 5 || $a > 10)

the if statement is true if the value of $a is less than 5 OR greater than 10...


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 3 26-08-2004 , 12:18 PM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
I tried that and it gave me errors. Now it works perfectly. The errors must have been coming from elsewhere and I didn't realize.

Thanks.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off