Command Palette ⚡ Keygroups (new)
 1-20  21-23

Next
 From:  stefano (LIGHTWAVE)
12014.1 
it's beneficial to read the entire post, but its also beneficial to have Llama power and new keygroups feature..
You can get Llamafied version (1.45) a bit further down or go there right now:
https://moi3d.com/forum/index.php?webtag=MOI&msg=12014.17
-----------------------------------------------------------------------------------------------------------------------------------------------------

Hi All,

Pleased to attach v1 (.21) of 'Command Palette' .

I really like this script when assigned to the 'accent-key' directly above tab and below escape...
as i find it then totally complements my workflow and works with moi not against it,




You can assign then open the script from any shortcut key. Once opened simply type straightaway.
Partial or fuzzy searching allowed. Press enter to run. Also, up/down keys work nicely. Hit escape twice to exit..

No need to remember all those more obscure shortcuts with this or call up long
script or command names in full. You can type shorthand or remember things like 'boo-lean or rude, extrude,
fi-llet.








many thanks to Michael for sorting out the loop to get the search box nice and responsive..

This tool originally started in autohotkeys, but i wanted it a lot more responsive or moi-integrated


All / any feedback is welcome.

-------------------------------
Edit
#1 uploaded slightly tweaked version works ok with dark theme ref - Phiro
#2. Resources:
Install scripts
Assign shortcut keys via options/shortcuts
#3 Zip file now includes script js + htm and base64 icon for anyone using max's customui.

EDITED: 6 Jun 20:46 by LIGHTWAVE


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Phiro
12014.2 
Very nice.

A problem for me.
The highlighted line is quasi white on white with dark theme.

The color is hardcoded


.cp_btn_selected {
font-weight: bold;
background-color: #d9e8ff;
}
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.3 In reply to 12014.2 
Hi Phiro, as I work in 'grey' defacto theme - i did not test that, i can likely try fix that (see below for interim to test - replace the entire block
you gave with this below,

code:
.cp_btn_selected {
	font-weight: bold;
	background-color: #2f6fad;
	color: #ffffff;
}




cheers Stefano

EDIT: my first post has now had command palette.txt updated with the code above / darkmode friendlier
https://moi3d.com/forum/index.php?webtag=MOI&msg=12014.1

EDITED: 1 Jun by LIGHTWAVE


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.4 In reply to 12014.3 
If you use Max's Custom UI
I attach my icon that should work, simply put in the startup commands folder:

\Users\<username>\AppData\Roaming\Moi\startup (win)
or
/Users/<username>/Library/Application Support/Moi/startup (mac)

Rename: 85 Command Palette.txt to .js

looks ok in dark mode ⚡, might do a line art version - another day.

EDITED: 2 Jun by LIGHTWAVE


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
12014.5 
This is nice..
maybe an idea here

In Nvil3d you have the tool search option as well and you can assign it to a letter or number which is displayed on your screen right side...
a single one can have more than one command and can be quickly added or removed.

Dont have to try to remember the shortcuts.
Image Attachments:
Size: 55.9 KB, Downloaded: 17 times, Dimensions: 375x474px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.6 In reply to 12014.5 
Hi Matedem, noted and thanks a lot for the feedback - appreciated.

Are you sort of person who prefers to work by association eg.
C-key for curve tools, that goes through all those tools one by one?
or L might give you line tools and all scripts related to "lines".
or S might give you every single filesave type...

That's another idea maybe worth exploring as is ways you can alias
or rename scripts...(effectively grouping them as you may prefer).

Cheers

Stefano
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
12014.7 In reply to 12014.6 
I do not use allot of shortcuts probably 6 on a regular basis. but have a few installed specific to my case.
the problem I have and seems its going to be resolved...when I need a script...I do not know if I have it installed already or not and I am wasting time
looking at my shortcut list trying to find it.

so I think if you have the search option you could basically install all the available Moi3d scripts (maybe download all as a package instead of one by one).

Me personally keep it as simple as possible.
In Nvil3d an example ... you highlight a plane/mesh section...go to the letter C I had setup on the screen and this will circulate the selection.....but this does not mean that the shortcut is assigned to the letter C on the keyboard.
there are other way to setup streamlines tools/shortcuts but the current setup works good enough and I did not want to complicate things.

so you have more space to setup your used commands.
to me this is a very nice setup and you can setup shortcuts from the tool search.
I always wished something similar in Moi.

Tnx!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  大道刀 (SUIYAN)
12014.8 
Hello, why is it like this?

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
12014.9 In reply to 12014.8 
@ stefano - it looks like the .htm file is there accidentally twice, CommandPalette.htm and then same file again under CommandPalette.txt .

For forum attachments it should be ok to post files with .js file extension, it isn't sensitive to having .js files like e-mail attachments tend to be.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  大道刀 (SUIYAN)
12014.10 In reply to 12014.9 
好的,我习惯性的将txt后缀改为.js然后按常规方法安装脚本。现在我将其中一份删除了,请问该如何安装并使用呢?(Okay, I habitually change the .txt suffix to .js and then install the script using the conventional method. Now I have deleted one of them. How can I install and use it?)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
12014.11 In reply to 12014.10 
Hi SUIYAN, the same file was accidentally uploaded twice.

CommandPalette.txt which should have the .js content is instead another copy of CommandPalette.htm .

You won't be able to set it up until Stefano fixes it.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.12 In reply to 12014.7 
hi matedem. shortlisted is looking at aliases and preset groups which i think can do exactly what you want.

But this stuff needs to be held back a bit, mainly as im learning a bit about moi3d powerful 'json' or "key: values"
in user data area before I get closer to another round of changes...

All this means we might soon be able to give you something flexible...likely be V2.
I do this in my 'spare time' - and likewise i've deliberately asked for feedback like
yours as it might help me know where (or where not) to concentrate further tweaks.

If anything else comes to mind, plz keep posting!

Cheers

Stefano
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.13 In reply to 12014.9 
thanks michael and sorry to all...will post .js in future. For now to avoid any confusion i will update the original post
with a .zip file and it will include the 'icon' if anyone needs it for max's custom ui.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.14 In reply to 12014.10 
hi suiyan, .zip file is now in the original post and hopefully works.... cheers stefano
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Marc (TELLIER)
12014.15 In reply to 12014.14 
Wow that's a very useful tool !

Thanks
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.16 In reply to 12014.15 
Cheers for the feedback Marc, hope it comes in useful at times...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.17 In reply to 12014.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 multi function llama button returns to assist you
with inspirational shortcut duties.




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,
build or modify the tool set, then press <Enter>.

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 keygroup is your favourite or default/most used keygroup.
A pinned keygroup is also used for an experimental Export feature*.

Advanced / Experimental
All your KeyGroups are stored as JSON in:

`%AppData%\Moi\CommandPalette.KeyGroups.txt`
Please when creating your keygroup names, type carefully,
there is no delete or edit keygroup name currently.
However, you can edit that keygroups text file if you want.


>KeyGroup Export
Shift-left-click Group to export the 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 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 Groups.
• 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...

EDITED: 6 Jun 17:44 by LIGHTWAVE


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
12014.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 );

EDITED: 6 Jun 19:07 by MATADEM

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  stefano (LIGHTWAVE)
12014.19 In reply to 12014.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?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
12014.20 In reply to 12014.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!

EDITED: 6 Jun 19:39 by MATADEM

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-23