#1
|
||||
|
||||
mouse shortcut
In OSD Modeling, can we customize mouse shortcut button1+button3 reacting exactly like ctrl-button2, let user holding buttons to rotate model?
|
#2
|
||||
|
||||
Re: mouse shortcut
In Modeling click Help, Help Topics. Under the left frame of the Contents tab, open Customization/Windows/Other customizing options. See the section "Assigning actions to the mouse buttons".
I haven't tried it, but I assume you can copy the all_mouse_defs.lsp file to the main corp, site, or user customization folder and modify it if you don't want to edit the original.
__________________
John Scheffel |
#3
|
||||
|
||||
Re: mouse shortcut
Thanks, John. I copied "all_mouse_defs.lsp" into user customization folder and modify for mouse shortcuts. I has also read the section "Assigning actions to the mouse buttons", but it doesn't give me the solution.... I wonder whether we can customize mouse shortcut button1+button3 reacting exactly like ctrl-button2, let user holding the buttons and moving mouse simultaneously to rotate model?
|
#4
|
||||
|
||||
Re: mouse shortcut
Something of this sort would be nice to see.
|
#5
|
||||
|
||||
Re: mouse shortcut
Lim,
I have a 3 button mouse (2 buttons and wheel) and if I hold down the two outside buttons at the same time and the Ctrl key I can rotate the model in OSDM. This is an out of the box function and required no customizations. What kind of mouse are you running are you trying to eliminate the use of the Ctrl key for this action? Cheers Thom |
#6
|
||||
|
||||
Re: mouse shortcut
Hi, Thom.
I'm using 3-button mouse too. Yes, as what you guess, I'm trying to elimintate the use of ctrl key for the action. Is this possible? |
#7
|
||||
|
||||
Re: mouse shortcut
In order to do this you would need to know the command that is executed when you click Ctrl-Middle-Mouse to do dynamic rotation. Unfortunately the all_mouse_defs.lsp file does not list the commands for most of the button options. I assume "(declare (ignore args))" means use the default Modeling behavior.
I tried using the recorder but it does not capture the what happens when you click Ctrl-Middle-Mouse. It only captures the command issued to specifiy the new position once rotation is complete. Unless someone from CoCreate is willing to provide the command for dynamic rotation I don't know how you could make this customization.
__________________
John Scheffel |
#8
|
||||
|
||||
Re: mouse shortcut
Do the CoCreate engineers view and interact with us end users here? Where are all the .lsp files you guys keep mentioning when you want to modify something? Is there a .lsp file for every command? Excuse my computer ignorance, and sorry for being off topic.
|
#9
|
||||
|
||||
Re: mouse shortcut
Hi, Mad.
The mouse customization file, "all_mouse_defs.lsp" is kept in [OSD Modeling folder]/personality/sd_customize folder. There are basically shortcut definitions (in LISP) for combinations of mouse buttons. For example, ;-------------------------- (defun Button2 (&rest args) (declare (ignore args)) (put-buffer "complete") (values)) ;-------------------------- It defines mouse middle button as "complete" command. Hi, John. As what you said, I also do not know how to define Button1+Button3 to react exactly like Ctrl-Button2, because it is not defined in the file. I could only achieve ctrl key elimination by the following code. ;-------------------------------------------- (defun Button1Button3 (&rest args) (declare (ignore args)) (LISP::IF (LISP::EQL (FRAME2::PRIM-VP-GET-EXPLICIT-DYNAMIC-MODE) :EXPLICIT_DYNAMIC_NONE) (FRAME2::PUT-BUFFER "frame2-ui::explicit_dynamic_vp :rotate") (FRAME2::PUT-BUFFER ":rotate")) ) ;--------------------------------------------- which let Button1+Button3 to start the "rotate" mode. Then, holding Button1 coupled with mouse movement will rotate the 3D model in viewport. To cancel the rotate mode, press middle button once. Ctrl button is eliminated but more clicks are needed. |
#10
|
||||
|
||||
Re: mouse shortcut
Quote:
Mad_Scientist: LISP is OSDM's main customization language, and it is also used for parts of our development. Therefore, you'll find that many of our customization files use LISP syntax (or at least LISP-ish syntax). There is extensive online documentation on how you can extend and customize OSDM; the docs will also explain where you find which kind of customization files. Lim Chee Beng: I'm not an expert here, and I'd have to look up the details before I can be sure, but I don't think you can really "eliminate" the CTRL button. It is checked for internally in our code, which (if I'm not mistaken) you cannot influence through customization files. This is probably also why the definition for ControlButton2 in all_mouse_defs.lsp has an explicit comment which says "not available for customization". Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#11
|
||||
|
||||
Re: mouse shortcut
Quote:
__________________
John Scheffel |
#12
|
||||
|
||||
Re: mouse shortcut
Quote:
__________________
John Scheffel |
#13
|
||||
|
||||
Re: mouse shortcut
Quote:
Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#14
|
||||
|
||||
Re: mouse shortcut
BTW, OSDM 2005 has an alternative rotation mode anyway. Simply press
the rotation icon in the "View" toolbar, then press the left mouse button and move the mouse to rotate the model. No need to hold the CTRL key down anymore. It's also trivial to assign a keyboard shortcut to the icon (see screenshot), which reduces mouse movements. You'd simply use the keyboard shortcut, then move the model with the mouse. HTH, Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#15
|
||||
|
||||
Re: mouse shortcut
That's definetly one way to do it. But I think he want's to get rid of keyboard strokes all together.
Last edited by Mad_Scientist; 10-20-2005 at 01:17 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|