29th January 2007, 01:53 PM | #1 | |
Junior Member
Junior member
Join Date: Jan 2007
Posts: 2
|
Re: Authoring your own scripts
Hi,
Is it possible to show a menu after right clicking in a view? Can this be done with a script? Thanks, Bart Quote:
|
|
29th January 2007, 07:00 PM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Script for right-click menu
Try this:
Code:
#make a popup menu menu .rightmenu -tearoff false .rightmenu add command -label "Select All" -command "ac3d select_all" # bind a right click (button 3) to view 0 (top left view window) bind $ToglWinName(0) <3> { tk_popup .rightmenu %X %Y} |
2nd February 2007, 08:40 AM | #3 |
Junior Member
Junior member
Join Date: Jan 2007
Posts: 2
|
Re: Script for right-click menu
Thanks for the tip!
Regards, Bart |
18th March 2008, 07:57 PM | #4 |
Junior Member
Member
Join Date: Oct 2007
Posts: 12
|
Re: Script for right-click menu
what is tcl? how do i do this? do i need a separate program?
|
18th April 2008, 08:05 PM | #5 |
Senior Member
Professional user
Join Date: Feb 2008
Location: Brighton, England
Posts: 231
|
Re: Script for right-click menu
no TCL is in the folder that AC3D is installed on on your computer, you can use notepad to right these is your clever enough
__________________
MarshallARTS, Playtime for the professionals! http://www.turbosquid.com/Search/Ind...lAuthorExact/y |
19th April 2008, 12:10 AM | #6 |
Senior Member
Professional user
Join Date: Mar 2008
Location: USA
Posts: 227
|
Re: Script for right-click menu
Oh but Tcl/Tk (pronounced 'Tickle Tick') is a language all on its own my friend. Have got a book in storage; (Big, Black, Thick one), will dig it out tomarrow. It has an old version of it included. But yes you are correct you can use a text-editor to write the scripts.
__________________
VR is the future, The future is NOW!!. Last edited by Klyde; 19th April 2008 at 12:12 AM. Reason: Spelling errors |
19th April 2008, 12:44 PM | #7 |
Senior Member
Professional user
Join Date: Feb 2008
Location: Brighton, England
Posts: 231
|
Re: Script for right-click menu
is that what it is call Tickle Tick or is is just pronouced that way?
__________________
MarshallARTS, Playtime for the professionals! http://www.turbosquid.com/Search/Ind...lAuthorExact/y |
19th April 2008, 01:06 PM | #8 |
Senior Member
Professional user
Join Date: Mar 2008
Location: USA
Posts: 227
|
Re: Script for right-click menu
Just pronounced that way I 'spose.
__________________
VR is the future, The future is NOW!!. |
22nd April 2008, 08:34 PM | #9 |
Senior Member
Professional user
Join Date: Mar 2008
Location: USA
Posts: 227
|
Re: Script for right-click menu
Went to storage and retrieved that book. "Graphical Applications with Tcl & Tk 2nd edition. -- Eric Foster-Johnson (ISBN 1-55851-569-0) It covers ver 8.0.
__________________
VR is the future, The future is NOW!!. |
Thread Tools | |
Display Modes | |
|
|