AutoHotPie icon indicating copy to clipboard operation
AutoHotPie copied to clipboard

Please add 3dsmax support to execute / run .ms .mse and .py files

Open justml opened this issue 1 year ago • 9 comments

hello. It will be nice if we can execute external scripts/tools from the pie menu inside of the 3dsmax software. For the moment it just open the file in an external text editor, like notepad.

Thanks!

AHP_01

justml avatar May 07 '24 10:05 justml

If u set from windows explorer the software you want this script to open with I think it would work for you. If not you can create an AHK script very easy to trigger this function

Forikundo avatar May 07 '24 14:05 Forikundo

If u set from windows explorer the software you want this script to open with I think it would work for you. If not you can create an AHK script very easy to trigger this function

if I set from windows explorer will open a new session of 3dsmax. I should try to create an AHK script but I don't know how. I don't know this language. Can you help me? thx

justml avatar May 08 '24 06:05 justml

Okay so what would you need your computer to do? open this script from 3dsmax? or open iw using 3dsmax while you have an instance of 3dsmax open?

Forikundo avatar May 08 '24 07:05 Forikundo

Okay so what would you need your computer to do? open this script from 3dsmax? or open iw using 3dsmax while you have an instance of 3dsmax open?

run the script file (.ms) inside of the current instance of 3dsmax.

justml avatar May 08 '24 07:05 justml

And how do you get that? In 3ds max you go "run script" and look for that or dragging from the explorer the file to 3ds max?

Forikundo avatar May 08 '24 07:05 Forikundo

well, it can be drag and drop from win explorer to the 3dsmax viewport as you said or from the menu scripts->run script. But it can be execute by macro script with command "on execute do (...)" or by command "fileIn" and the (scriptPath + scriptName + scriptFileType) as string. So in my case the code will be: < fileIn "B:\Dropbox\ML_Tools\Tools\Teste\menuModifiers.ms" >

justml avatar May 08 '24 07:05 justml

Sorry for spam, but I found this on the internet. where I can paste this code in the AutoHotPie to test it?

{ WinActivate, Autodesk 3ds Max ControlSetText, MXS_Scintilla2, , Autodesk 3ds Max Control, EditPaste, fileIn "B:\Dropbox\ML_Tools\Tools\Teste\menuModifiers.ms", MXS_Scintilla2, Autodesk 3ds Max ControlSend, MXS_Scintilla2, {Enter}, Autodesk 3ds Max Return }

justml avatar May 08 '24 08:05 justml

You can create an AHK script (It's just a text file with the .ahk extension) and execute it to see if it works. But I would remove the brackets. It would be something like this:

WinActivate, Autodesk 3ds Max ControlSetText, MXS_Scintilla2, , Autodesk 3ds Max Control, EditPaste, fileIn "B:\Dropbox\ML_Tools\Tools\Teste\menuModifiers.ms", MXS_Scintilla2, Autodesk 3ds Max ControlSend, MXS_Scintilla2, {Enter}, Autodesk 3ds Max Return

Id help you more but I'm at work and can't be too distracted haha

Forikundo avatar May 08 '24 08:05 Forikundo

Id help you more but I'm at work and can't be too distracted haha

ok. no problem. I am at work as well :) this is the result of the code inside of the .ahk file when I run it from the autohotpie. image

justml avatar May 08 '24 08:05 justml