(dotnetClass “Cursor”).Position = dotnetObject “System.Drawing.Point” X Y where X and Y are screen coordinates.
((dotnetClass “System.Diagnostics.Process”).GetCurrentProcess()).Kill() No rollouts, no timers, no hassle.
try calling “close” on files you created or opened via maxscript before trying to delete them.
I work with mapped drives all the time, there should be no issue. What is the value stored in finalNoteFolder? What value does finalNoteFile evaluat…
If your script is somehow smart enough to know when it has been tampered with, then it can just refuse to continue running in that case. There is noth…
You’ll need to just wrap that c# code in a dynamically compiled assembly. The topic has been explained to death on these forums. Btw, I assure you th…
This is only possible using a RichTextBox.
I don’t understand what you mean by ‘my user designs UI for me’.
denisT: would it be better for some habits to put semi-colon at the end of a python line as well? Only if you: also start indenting; M…
It’s not just ‘use the shortest one’, it should be ‘use the shortest one that’s readable’. This is what my code looked like when I started: if a==5 …
You were using fn before it was cool. :arteest:
spacefrog: Reason for this being that i agree with the newer programming style guides, where acronyms only should be used in special cases ( really …
( local cam = viewport.getCamera() if (cam != undefined) do ( for i = 1 to viewport.numViews do ( viewport.activeViewport = i viewport.s…
I really doubt that this is the performance bottleneck in your code, but if it is, the solution is to change your algorithms to require less checks.
Yes, of course, that’s not a declaration, that’s just reading/writing an existing variable. PolyTools3D: Also, declaring local variables insid…