lo1
@lo1
New Member
Joined: Feb 14, 2024
Topics: 44 / Replies: 1920
Reply
RE: Set mouse.pos / mouse.screenPos

(dotnetClass “Cursor”).Position = dotnetObject “System.Drawing.Point” X Y where X and Y are screen coordinates.

10 years ago
Forum
Reply
RE: quitMax in scripts/startup doesnt work.

((dotnetClass “System.Diagnostics.Process”).GetCurrentProcess()).Kill() No rollouts, no timers, no hassle.

10 years ago
Forum
Reply
RE: problem with openFile command

try calling “close” on files you created or opened via maxscript before trying to delete them.

10 years ago
Forum
Reply
RE: problem with openFile command

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…

10 years ago
Forum
Reply
RE: LockWorkStation in maxscript?

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…

10 years ago
Forum
Reply
RE: LockWorkStation in maxscript?

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…

10 years ago
Forum
Reply
RE: queston for hardcore dotnet old stagers

This is only possible using a RichTextBox.

10 years ago
Forum
Reply
RE: MXS coding standards: UI

I don’t understand what you mean by ‘my user designs UI for me’.

11 years ago
Forum
Reply
RE: MXS coding standards: fn vs function

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…

11 years ago
Forum
Reply
RE: MXS coding standards: fn vs function

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 …

11 years ago
Forum
Reply
RE: MXS coding standards: fn vs function

You were using fn before it was cool. :arteest:

11 years ago
Forum
Reply
RE: MXS coding standards: fn vs function

spacefrog: Reason for this being that i agree with the newer programming style guides, where acronyms only should be used in special cases ( really …

11 years ago
Forum
Reply
RE: viewport change view, script help

( local cam = viewport.getCamera() if (cam != undefined) do ( for i = 1 to viewport.numViews do ( viewport.activeViewport = i viewport.s…

11 years ago
Forum
Reply
RE: fast checking if array is empty

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.

11 years ago
Forum
Reply
RE: Local variables vs straight-up variables

Yes, of course, that’s not a declaration, that’s just reading/writing an existing variable. PolyTools3D: Also, declaring local variables insid…

11 years ago
Forum
Page 22 / 131