ScriptSpot

Forum topic · General Scripting

open file in another instance of Max

By titane357 · 2013-07-17

Description

hello

I need to work with Xref Objects.
I want to select a Xref Object and "clic" open the source object in a new instance of max.
I have :
-------
a = $.srcFileName
loadMaxFile a
-------
but it opens in opened max instance.
Can anybody help ? Thanks.

Comments (2)

barigazy · 2013-07-17

Use ShellLaunch command


--ShellLaunch a = $.srcFileName
ShellLaunch a ""

titane357 · 2013-07-17

Thanks, Barigazy. I wasn't really aware of shellLaunch utilization.
So bad that Max is so long to Launch... (12-15s on my computer)