noob at this stuff... and was wondering if someone could answer a couple of things for me. I searched... problem is if you don't know what you are searching for it is hard to find.
What is a good way to stop a script without a message. Essentially a "do nothing" function. I am trying to make a for loop and whenever it can't find a specific modifier on the stack... it gives an error and stops. I would like for it to skip the object and go to the next if that modifier doesn't exist.
Next question is...
Why doesn't this work?
if variable = 50 then(
this works...
if variable > 50 then(
Any help would be greatly appreciated.
![:) :)](https://polycount.com/plugins/emojiextender/emoji/twitter/smile.png)
Replies
Sorry don't know the professional words for those in english. I hope you know what I mean ;p
Anyone else on the do nothing function?
if you want it to not error out just use some if and else statements to check for the existence of the modifiers first.
like IF modifer exists do stuff, ELSE print warning and move on.
and like MrOneTwo said in almost all languages = is generally for setting a value or variable, and == compares.
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-C6E64837-C873-4895-A5CF-FA1A5055CEF-435.htm
"where" in your for loop, acts basically as a "if ... continue" inside
example:
it also works on while as well