Trouble while creating my own keyboard shortcusts

Next
 From:  Heiner (BILDERMENSCH)
6765.1 
Hi there,
due to the nature of my project, I have to use MOI more and more, and therefore I wanted to create some keystrokes of my own. While doing so, I ran into trouble and my shortcuts do not want to work. For example:
I wanted to make the Hide object work with the h key. So i made a new shortcut, told it, that I want the key h and the command Hide and what i get is errors. Not always the same, but mostly Reference Errors, cant find variable. Itried it with "hide" and "Hide object", always the same result. What am I missing here?
Cheers
Heiner
  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:  coi (MARCO)
6765.2 In reply to 6765.1 
Hi Heiner!

Hide is a macro.

quote:
There are a few buttons in the UI that run script macros instead of commands: Hide, Reset all, Select all, Deselect all, and Invert. This is so they can be used while a command is still running, so these functions are slightly different than a regular command. To hook these up to a shortcut key fill in the Command part with one of the following scripts:

Hide:
script:moi.geometryDatabase.hide();

Lock:
script:moi.geometryDatabase.lock();

Reset all views:
script:moi.view.resetAll();

Select all:
script:moi.geometryDatabase.selectAll();

Deselect all:
script:moi.geometryDatabase.deselectAll();

Invert selection:
script:moi.geometryDatabase.invertSelection();
  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:  Heiner (BILDERMENSCH)
6765.3 
Cool,
now its working ...
Thanks.
One more question: What if i want to have shortcuts with CTRL or SHIFT?
Cheers
Heiner
  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:  coi (MARCO)
6765.4 In reply to 6765.3 
Hi Heiner,

just write "Ctrl+" or/and "Shift+" and the key...f.i.

  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
 From:  Michael Gibson
6765.5 In reply to 6765.1 
Hi Heiner, yeah for some particular functions they're not actually what is called a "command", they are instead some script code. Some various things that can be activated while you are actually still running inside of a command are like that.

There's some more information in the help file topic for keyboard shortcuts here:
http://moi3d.com/2.0/docs/moi_command_reference11.htm#shortcutkeys

- 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
 

Reply to All Reply to All