22nd January 2007, 03:35 AM | #1 |
Senior Member
Professional user
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
|
Testing a new script
I have written a first script and saved it in the "plugins" directory, but it doesn't appear anywhere in the menus. How can I test it?
Thanks, Thierry |
22nd January 2007, 05:31 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Testing a new script
put it in the scripts folder - then it will be executed when AC3D starts.
|
22nd January 2007, 12:40 PM | #3 |
Senior Member
Professional user
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
|
Re: Testing a new script
My mistake, Andy; sorry about that: you had already answered the very same question in another post. I've made an ass of myself again.
But as I am at it, how can I write a tcl/tk script (I don't want to mess with C or C++) that will be launched from an AC3D menu? You see, the scripts I have in mind will operate on the selected object(s). Is there somewhere an example which I can study? Regards, Thierry |
23rd January 2007, 11:08 AM | #4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Testing a new script
AC3D's UI is defined in Tcl/Tk in the tcl folder - have a look there.
You may want to try this to add a menu item to the tools menu add_tools_menu { label command help } |
23rd January 2007, 11:37 AM | #5 |
Senior Member
Professional user
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
|
Re: Testing a new script
Thanks, Andy.
Thierry |
|
|