Hello fellow Stack Overflow members! First of all, thanks for spending your time reading this question. I'm learning Maxscript so I can do some quick and sofisticated facial rig. My script is 99% done. The only problem is that right now the script has hard coded the name of the target object to be rigged ('MYOBJECT' in the code bellow). Instead of having to right down the name of the object in the MaxScript, I would like to create a function that will open a dialog window asking me to click in the target face abject, then after the user clicks in the target object, my code would do the job that it's already able to do, but using the selected object name instead of a hard coded name.
![3ds max maxscript 3ds max maxscript](/uploads/1/2/5/4/125459523/395652900.jpg)
My code is bellow. Thank you very much for your help! /.
Script wrote by RDlady: This script was created following the example from Paul Neale's tutorial class: Comments and little modifications added by RDlady.
Feb 26, 2019 - Most render settings can be set using the Maxscript. You can list the. Adding new functions is very easy, so contact us if you need any.
If a b do (print d; print e) a = (if d = = 0 then 0 else a / d) The first is a test expression that must evaluate to true or false, such as a comparison or logical expression. If the result is true, the then or do is evaluated and its value is returned as the result of the. If the result is false, the optional else is evaluated and its value is returned as the result of the. If there is no else or the do form is used, the returns the value undefined. The do form is provided particularly for use during interactive sessions in the MAXScript Listener.
When you enter expressions for immediate evaluation into the Listener, MAXScript determines if your expression is complete and then evaluates it. If you use the optional else form in the Listener and you want to omit the else, MAXScript continues to 'wait and see' if you enter an else. The line break after the then is legal and does not cause MAXScript to evaluate the current line right away.