Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

MaxScript Methodology: Loops...

MaxScript Methodology: Loops...

blakestone
Collaborator Collaborator
404 Views
1 Reply
Message 1 of 2

MaxScript Methodology: Loops...

blakestone
Collaborator
Collaborator
Good morning, this post is more about the understanding of how to approach MaxScript when it is being continuously executed which I assume will be using some form of Loop to keep the script active, or maybe there is a mode which you can put the script into?

An example of this would be say using the "PainterInterface" you would first execute the Painter script and then execute a Loop to keep the script active and obtain the user input data etc. However I am finding that running a Loop in instances like this I have troubles exiting the Loop or the Loop interferes with whats being executed (mostly performance wise).

Would there be a particular mode that you can put the script into rather than a Loop which you can say Enable/Disable via a GUI Button. Such as a button like ... ... etc.

Again this is not specific to Painting it can be for anything which requires continuous updating until the user decides to stop executing.
--------------------------------------------------------------------------------------
Technical 3D Graphic Artist
Autodesk 3dsMax 2015 - Service Pack 4
--------------------------------------------------------------------------------------
0 Likes
405 Views
1 Reply
Reply (1)
Message 2 of 2

Steve_Curley
Mentor
Mentor
I don't believe you need a loop - at least not in the sense of looping until the painting (or whatever) is finished.

Have a look at the "How To..." section of the Maxscript Help - several of them require multiple clicks, one of them is actually about painting on a bitmap. They may be of some use.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes