You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
macroScript Launch_VR4Life
|
|
category:"VR4Life"
|
|
tooltip:"VR4Life Auto-Bake Plugin"
|
|
buttonText:"Ligar VR4Life"
|
|
(
|
|
on execute do (
|
|
python.ExecuteFile @"Z:\Emmersive games\3dxMAX\vr4life-3dmax-plugin\run_vr4life.py"
|
|
)
|
|
)
|
|
|
|
macroScript Reload_VR4Life
|
|
category:"VR4Life"
|
|
tooltip:"Salvar Estado e Recarregar Plugin"
|
|
buttonText:"Recarregar VR4Life"
|
|
(
|
|
on execute do (
|
|
python.Execute "import pymxs\ntry:\n pymxs.runtime.vr4_app.reload_plugin()\nexcept:\n pymxs.runtime.python.ExecuteFile(r'Z:\\Emmersive games\\3dxMAX\\vr4life-3dmax-plugin\\run_vr4life.py')"
|
|
)
|
|
)
|
|
|
|
(
|
|
local mainMenu = menuMan.getMainMenuBar()
|
|
|
|
local oldMenu = menuMan.findMenu "VR4Life"
|
|
if oldMenu != undefined do (
|
|
menuMan.unRegisterMenu oldMenu
|
|
)
|
|
|
|
local vr4Menu = menuMan.createMenu "VR4Life"
|
|
|
|
local launchItem = menuMan.createActionItem "Launch_VR4Life" "VR4Life"
|
|
vr4Menu.addItem launchItem -1
|
|
|
|
local sep = menuMan.createSeparatorItem()
|
|
vr4Menu.addItem sep -1
|
|
|
|
local reloadItem = menuMan.createActionItem "Reload_VR4Life" "VR4Life"
|
|
vr4Menu.addItem reloadItem -1
|
|
|
|
local topLevelItem = menuMan.createSubMenuItem "VR4Life" vr4Menu
|
|
mainMenu.addItem topLevelItem -1
|
|
|
|
menuMan.updateMenuBar()
|
|
messageBox "Menu VR4Life atualizado! Agora a opcao de Recarregar foi transferida para ca." title:"VR4Life Toolbar"
|
|
)
|