open file in another instance of Max

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

...

Use ShellLaunch command

--ShellLaunch <filename_string> <parameters_string>
a = $.srcFileName
ShellLaunch a ""

barigazy

titane357's picture

Thanks, Barigazy. I wasn't

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.