MoI discussion forum
MoI discussion forum

Full Version: Command Palette ⚡ Keygroups (new)

Show messages:  1-13  14-28

From: stefano (LIGHTWAVE)
2 Jun   [#14] In reply to [#10]
hi suiyan, .zip file is now in the original post and hopefully works.... cheers stefano
From: Marc (TELLIER)
3 Jun   [#15] In reply to [#14]
Wow that's a very useful tool !

Thanks
From: stefano (LIGHTWAVE)
3 Jun   [#16] In reply to [#15]
Cheers for the feedback Marc, hope it comes in useful at times...
From: stefano (LIGHTWAVE)
6 Jun   [#17] In reply to [#5]

4 personality llama, on button

Following a key moment of inspiration, the Command Palette has been updated.


The big addition is Key Groups, where the llama group button creates and activates custom tool panels..




Command Palette 1.45 with KeyGroups

Key Groups are user-defined tool sets for creating custom command panels. They can contain commands, launch scripts, support workflow-specific tool sets, and be triggered directly by MoI shortcut keys.

The new Group button creates, edits, and accesses Key Groups using a toggle mode.
Yo Llama Group button

Left-click: create/edit Key Groups (Function 1)
Right-click: switch between Command Palette and Key Groups (Function 2)

To create or edit a Key Group simply left-click the Group button, enter its name,
then press <Enter>. to build or modify.

Using an existing name edits that Key Group; a new name creates one.

Names can be a letter, word, phrase, or abbreviation.

Example Keygroup names, might be:

>My Top Scripts
>Smirnov Top 5
>Drawing Tools
> "F" for file menu and save tools
>Dimension Kit

-----------------------------------------------------------------------------------------------
Preview:





Command line / shortcut syntax:

commandpalette
Opens the standard Command Palette.

commandpalette keys
Opens directly in Key Groups mode.
Not often used as tool remembers last toggle state now

commandpalette <yourkeygroupname> (no spaces)

Assign keygroup: My Top Scripts to a Moi3D Shortcut (options>shortcuts)
MoI3D MyTopScripts shortcut

Key zero opens that specific Key Group page called "My Top Scripts"
MoI3D MyTopScripts

OTHER:
A pinned Key Group can be set as your favourite, becomes the default group when Key Groups are activated.
A pinned Key Group is also used for an experimental Export feature*.

Advanced / Experimental
All your KeyGroups are auto-stored in a single text JSON file:

`%AppData%\Moi\CommandPalette.KeyGroups.txt`

! Please take care when naming Key Groups. Rename and delete functions are not yet available, although Key Group names can be edited manually in the CommandPalette.KeyGroups.txt file. .

*
>KeyGroup Export
Shift-left-click Group button to export the active pinned Key Group as a small shareable text file. (Function 3)
Filename example:
CommandPalette.KeyGroup.mytopscripts.20260502-1749.txt
in location: `%AppData%\Moi\

>KeyGroup Import Ready (Function 4)
Shift-right-click Group button checks for a future `CommandPaletteImport` / `CommandPaletteTools` command.
Not available at moment, shows a "Llama" message.


Summary v1.45

• New Key Groups.
• Toggle between Command Palette and Key Groups.
• Create user-defined Key Group panels.
• Build custom command panels for frequently used tools and workflows.
• Pin your favourite Key Group for quick access.
• Remembers the last active mode.
• Previous/Next navigation between Key Group Panels using mouse buttons or <> keyboard shortcuts.
• Direct launch of Key Groups from MoI shortcuts.
• Export pinned Key Groups as shareable JSON text files.
• NEW Base64 'Lightning' Icon for Max's Custom UI. left click for Command Palette, right click Keygroups.

Hope you enjoy...as much as i did building it for all you inspirational people...

Attachments:
commandpalette_145.zip

Image Attachments:
MoI3D_MyTopScripts.jpg  Moi3D_MytopScripts_Shortcut.jpg  Moi3D_YoLLama_Group.jpg_2.jpg 


From: Matadem
6 Jun   [#18]
just installed this...a great time saver!

question how would one deal setup with a script like this?

K script:moi.geometryDatabase.getObjects().getConstructionLines().setProperty( "isTemporary", false );
From: stefano (LIGHTWAVE)
6 Jun   [#19] In reply to [#18]
thanks for your feedback Matedem,

when you say set up that script, i think maybe you copy it all into a notepad text file
save it a name you like "ConstructionLines.js" or "MyCLines.js"

Put it in the commands folder.

Use the Command Palette to find it or add it to a keygroup.

is that what you mean?
From: Matadem
6 Jun   [#20] In reply to [#19]
Yes exactly.

One more thing
I have a shortcut
shift+b Boundingboxcenterindividual

but if I search I do not find it.
If i search ...bounding
I get
Boundingbox
Boundingboxcenter

If I search individual I get
Scaleindividual

but not
Boundingboxcenterindividual


Tnx!
From: stefano (LIGHTWAVE)
6 Jun   [#21] In reply to [#20]
check if that command (as a .js script) is here:

C:\Users\<yourusername>\AppData\Roaming\Moi\commands (windows)
or
C:\Program Files\MoI 5.0 beta Apr-27-2026\commands (windows)

maybe get it here:
https://moi3d.com/forum/lmessages.php?webtag=MOI&msg=10065.2

and put it into your app data commands folder...
command palette will see it then...

or FIRST:
if it already working for you from a shortcut, then 99% sure
you might have it already. So search your computer drive first
for the filename, then move it to the apps command folder ;o)

Image Attachments:
boundingboxcentreindividual.jpg 


From: Matadem
6 Jun   [#22]
Nevermind I had in another folder...put it in appdata and it works!
From: stefano (LIGHTWAVE)
6 Jun   [#23] In reply to [#22]
great !! i also tested it, my previous message shows image in the end...
From: stefano (LIGHTWAVE)
8 Jun   [#24] In reply to [#1]
Bleemin' windows?


Grid of traditional yellow and white windows in Evora, Portugal

V1.5 New Features:
modals & more...



First, my MOI3D Shortcut:




Now here's the new:

1. RMB toggle:
A right mouse click toggle, works almost everywhere over the panels,
allows very quick switching from Commands to Keygroups.




2. New Modal feature

Launch your keygroup panels from moi shortcuts as floating windows.
Use command line or create MOI3d key shortcuts, like:

commandpalette modal
commandpalette keys modal
commandpalette <yourkeygroupname> modal





3. "Pop to Modal"

If opening the command palette or a keygroup into MOI3D UI area
a small pop out icon is top right, click it and you will get
a modal version of it from there.



Modal keygroup panels can of course be resized or do auto-size
when very long >9 buttons. Takeaway: Big 'tool lists' are better
in modals, but we are kind to design, less is usually more.

Try call your big keysgroup panels up with:
commandpalette <yourkeygroupname> modal

4. Four-function MAX ɯooɹpɐǝɥ Custom UI ICON
My Command Palette Lightning-Bolt Icon, has these functions:

Left Click = Command Palette
Right Click = Command Palette Keys
Control + Left Click = Command Palette Modal
Contol + Right Click = Command Keys Modal







Other:
Try using arrow keys sometimes, its fast.
Keygroups: <>
Command Palette: up down.

In this round of 'dev' I simplified panel names. Tested autosized modals for compactness
but in the end made them fixed height modals because this allows "prev-next" buttons in modal keygroup panes to not resize
or jump around (unless you have built a very large panel)....

Few more images...




Hope you enjoy, no more revisions for a bit now...

New users or new to command palette, advised to read from post#1

Attachments:
command_palette_150modal.zip

Image Attachments:
MaxMouseButton.jpg  Moi3D_CP150_Modal-Shortcuts.jpg  Moi3D_CP150_Modal_keyGroup.jpg  Moi3D_CP150_PopOut_Modal.jpg  Moi3D_CP150_PopOut_Modals.jpg  MOI3D_RMB_ToggleHappy.jpg 


From: 大道刀 (SUIYAN)
9 Jun   [#25] In reply to [#24]
HI,In moi v3 and v4, the popout button pop-up window is blank(在moi v3,v4中 popout按钮弹窗是空白的。)

Image Attachments:
Blank.png 


From: stefano (LIGHTWAVE)
9 Jun   [#26] In reply to [#25]
Hi Suiyan, thanks for your feedback, I just tested on my V4
and I currently use windows...

Takeaway: Will fix it if i can of course, right now
not sure what could be the issue now - see edit

Cheers

Stefano

EDIT
V4 - Works for me but i have only done this one test so far..


Are you using MAC or Windows might be my first question...

Image Attachments:
command_pallete_150_V4_quicktest.jpg 


From: 大道刀 (SUIYAN)
9 Jun   [#27] In reply to [#26]
优秀,在v4中popout弹出成功了,原因是之前我把脚本文件放在了Program Files\MoI 4.0\commands而不是\AppData,那么这个问题在v3中有解决的办法吗?我的伙伴仍将V3作为主要版本使用,而v3没有\AppData路径吧?谢谢,非常优秀的脚本。(Excellent, popout worked in v4. The reason is that I had previously placed the script file in Program Files\MoI 4.0\commands instead of \AppData. Is there a solution for this issue in v3? My partner still uses V3 as the main version, and v3 doesn't have a \AppData path, right? Thank you, this is an excellent script.)
From: stefano (LIGHTWAVE)
9 Jun   [#28] In reply to [#27]
Hi Suiyan, Thanks for the feedback and glad you got something working.
I also have V3 and saw nothing worked there...I can maybe find out if its viable
to make it work there but so far i did all my testing in V5.

I have some other plans that will maybe want to use V5 new feature-set
but ok - let's see whats possible...and keep this as "open ticket" for now.

Cheers again Stefano

edit:
currently you can get a buggy version of CP1.5
in V3 put the two files commandpalette.js and
commandpalette.htm

in:
C:\Program Files (x86)\MoI 3.0\commands

Modals do not work but a partially working
panels keygroups and command palette
works in the MOI UI area...

Image Attachments:
CP150_V3_partial.jpg 


Show messages:  1-13  14-28