hotkeys on options

Next
 From:  vector illustrator (QUARITEXA)
9589.1 
How can I bind hotkeys on this options?


and on other buttons in this block.
Attachments:

  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
9589.2 In reply to 9589.1 
Hi quaritexa,one way (in v4) is that you can set up a shortcut key that will run the Extrude command and set those controls to a specific value. To do that you add parameters after the command name in the shortcut key.

To run Extrude with "cap ends" always enabled, set this as your shortcut key:

Extrude capends=true

For "both sides" set this:

Extrude bothsides=true

To do extrude tapered with one shortcut key do this:

Extrude tapered

- 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:  vector illustrator (QUARITEXA)
9589.3 In reply to 9589.2 
Can I do it in v3 and what if I want to change options after command run (during it run)?
  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
9589.4 In reply to 9589.3 
Hi quaritexa, sorry no the above method is new for v4 and won't work with v3. You can get the current v4 beta at http://moi3d.com/beta.htm .

It is possible to set up shortcut keys that will toggle options after the command is already running. To do that set these on a shortcut key:

script: /* Toggle Extrude Cap ends */ moi.ui.commandUI.capends.click();

script: /* Toggle Extrude Both sides*/ moi.ui.commandUI.bothsides.click();

script: /* Trigger Extrude Tapered button*/ moi.ui.commandUI.tapered.click();

I think those should work on either v3 or v4. If you want to find out the control name to use for this, look in the Extrude.htm file in the Commands sub-folder. The name to use is the id="" value for the particular control.

- 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:  vector illustrator (QUARITEXA)
9589.5 In reply to 9589.4 
What if object options is in separate window, opened with moi.ui.createDialog('ObjectOptions.htm');? How to address it's objects?

Attachments:

  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
9589.6 In reply to 9589.5 
Hi quaritexa,

re:
> What if object options is in separate window, opened with
> moi.ui.createDialog('ObjectOptions.htm');? How to address it's objects?

The MoI UI is not designed to have object options in a separate window like that, although I would think that the above script using moi.ui.commandUI to access it should still work as long as your custom UI only has one <moi:CommandUIContainer> element set up in it.

But script moi.ui.commandUI should work to access the command UI wherever it may be, I would think that a lot of commands would be broken if that did not work.

- 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:  Michael Gibson
9589.7 In reply to 9589.3 
Hi quaritexa, I guess the .click() method doesn't work properly in v3 so all those methods above are for v4 only.

It's not really advisable to customize the UI to such an extent as you show there because the UI toolkit is not static. There are changes to it between versions and doing a heavy customization like that will implicitly be bound to the UI toolkit of that specific MoI version and not be easily portable to new versions.

- 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:  vector illustrator (QUARITEXA)
9589.8 In reply to 9589.7 
I want to have a more customized UI layout (like I it see), than the application provides by default. Besides, I have two monitors and I want to put some elements on the second one.
  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
9589.9 In reply to 9589.8 
Hi quaritexa,

re:
> I want to have a more customized UI layout (like I it see), than the application provides by default.
> Besides, I have two monitors and I want to put some elements on the second one.

MoI is not currently designed to do these things. Although you can alter the UI yourself if you wish, it's outside of the intended scope of the product and you will be largely on your own. You shouldn't expect to get "official" support for your customized version although I will try to help if I'm able to do it relatively easily.

I don't advise really heavyweight modifications like that since it will tend to lock you in to a specific version and make it difficult for you to move to new versions and get new features and bug fixes.

However for the Extrude shortcuts, I think there are some other methods that should work for you.

For triggering a push-button control try this:

script: /* Trigger Extrude Tapered button*/ moi.ui.fireUIEvent( 'tapered' );

For toggling a checkbox try this:

script: /* Toggle Extrude both sides checkbox */ var e = moi.ui.commandUI.bothsides; e.value = !e.value;

- 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:  vector illustrator (QUARITEXA)
9589.10 In reply to 9589.9 
Thank you, Michael, for very flexible UI customizing possibilities.
MoI is one of the best program in this aspect.
  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:  vector illustrator (QUARITEXA)
9589.11 In reply to 9589.9 
Just one question. I want to insert options panel into top bar, like menu on attached video.
I draw how I see it:


The moi.ui.showMenu closes when you click on the viewport.
But options panel shouldn't. How to do this?
Attachments:

  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
9589.12 In reply to 9589.11 
Hi krasnovpro, sorry I don't think there is any way to set it up like that. Currently you can have 2 different kinds of floating windows, flyout menus which will disappear if you click outside them or dialogs which can stay open but have a title bar.

- 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