From: Brianfox90
Help please. Two scripts are needed. The first script for quickly changing the theme from dark to light. The second script for quickly opening the "details" window
From: Michael Gibson
Hi Brian,
Set dark theme:
script: moi.ui.theme = "Dark";
Set light theme:
script: moi.ui.theme = "Default";
Open "Details..." dialog:
script: moi.ui.createDialog( 'ObjectPropertiesDialog.htm', 'resizeable,defaultWidth:700,defaultHeight:500' );
- Michael
From: Brianfox90
Thanks, Michael
From: Brianfox90
Where can I see what classes are in Moi in order to write scripts myself?
From: Michael Gibson
Hi Brian,
re:
> Where can I see what classes are in Moi in order to write scripts myself?
There isn't currently official documentation for the scripting API, because that takes a lot of work.
However, there is some information here:
https://moi3d.com/wiki/Scripting
Also though if you want to script something that is in the regular UI, you can open up the UI files and find how it is accessed.
For example the UI control for changing the theme is in GeneralOptions.htm inside the UI folder in the install. If you look in there you can find that it sets it using moi.ui.theme = value;
- Michael
From: Brianfox90
Thanks for the answer
From: Larry Fahnoe (FAHNOE)
Hi Brian,
In addition to Michael's answer, here is another very worthwhile contribution toward API documentation for MoI:
https://moi3d.com/forum/index.php?webtag=MOI&msg=10857.36
--Larry
From: Brianfox90
thank you very much!!!!