ScriptSpot

Forum topic · General Scripting

Open/Merge/XRef/Cancel pop-up menu

By PerfectCell · 2013-02-25

Description

Hi,

How can I prompt this menu through maxscript? I can't seem to find any information on it.
(This is the pop-up you see when dragging a max file from windows into max)

Why can't it be as simple as the mergemaxscene dialog!? (i.e. mergemaxfile "C:/Desktop/maxfile.max" #prompt)

Comments (2)

you need similar RCmenu?

Anubis · 2013-02-25

and wish to start it w/o drag-n-drop file but then right click on the view port? i.e. something like this:

rcmenu RCMLoadFile
(
  fn selNone = selection.count == 0

  menuItem mi_open "Open" filter:selNone
  menuItem mi_merge "Merge" filter:selNone
  menuItem mi_xrefo "XRefObj" filter:selNone
  menuItem mi_xrefs "XRefScn" filter:selNone

  on mi_open picked do max file open
  on mi_merge picked do max file merge
  on mi_xrefo picked do max file xref object
  on mi_xrefs picked do max file xref scene
)

:)

PerfectCell · 2013-02-25

Thanks heaps

I was hoping there was a way to call it that didn't involve creating it from scratch, but this will do fine.

In the end it wasn't really what I was looking for, so I just made a rollout with a couple of buttons. Thanks anyway :)