View Full Version : Testing a new script
thierry_st_malo
22nd January 2007, 03:35 AM
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
Andy
22nd January 2007, 05:31 AM
put it in the scripts folder - then it will be executed when AC3D starts.
thierry_st_malo
22nd January 2007, 12:40 PM
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
Andy
23rd January 2007, 11:08 AM
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 }
thierry_st_malo
23rd January 2007, 11:37 AM
Thanks, Andy.
Thierry
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.