[Closed] see what maxscript is running?
Hi, a quick question.
Is there a way to see what scrips are open in the background? Because I have a script running that I want to edit but I have closed it from the MAXScript Editor.
Thanks in advance
There is no such thing as a maxscript running in the background. All maxcripts evaluate in the main thread.
There is no such thing as a maxscript running in the background.
( --maxscript in the background
maxScriptString = @"for i=1 to 10 do (myBox = box(); myBox.pos = [(random -200 200),(random -200 200),0])"
fn bkgWrkr = ( with redraw off ( execute maxScriptString ); completeRedraw(); )
MainThread = dotnetobject "CSharpUtilities.SynchronizingBackgroundWorker"
dotNet.addEventHandler MainThread "DoWork" bkgWrkr
MainThread.RunWorkerAsync()
)
All maxcripts evaluate in the main thread.
I think Patan77 is asking about a script that is currently evaluating in max.
I think he wants to collect all maxscripts currently evaluating in 3dsmax.exe.
Is this possible?
i am pretty sure that chris is right, even with a dotnet thread maxscript is evaluated in the main thread.
@AlpineMan and Lonerobot: Yes, all threads created with dotnet by maxscript evaluate inside the 3dsmax.exe process. I was referring to the fact that you can create a dotnet thread, and that dotnet thread will wait to be evaluated until the main thread is evaluated – meaning there are threads waiting to be evaluated in the background – thus background threads. I think AlpineMan and Lonerobot were both referring to two threads being evaluated concurrently. Regardless, I don’t think our discussion of concurrency has any relevance to what Patan77 is asking.
Because I have a script running that I want to edit but I have closed it from the MAXScript Editor.
@Patan77: Why can’t you open the script from the maxscript editor and begin your edits?
I didn’t remember where I had saved it so when I closed it in the editor, then I couldn’t find it even though I just applied it a roll-out, and I thought I had read a command some where that listed all active scripted or something.