Go Back   AC3D Forums > Resources > AC3D Scripts and Mods
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 22nd January 2007, 03:35 AM   #1
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Question 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
thierry_st_malo is offline   Reply With Quote
Old 22nd January 2007, 05:31 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,500
Default Re: Testing a new script

put it in the scripts folder - then it will be executed when AC3D starts.
Andy is offline   Reply With Quote
Old 22nd January 2007, 12:40 PM   #3
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Default 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
thierry_st_malo is offline   Reply With Quote
Old 23rd January 2007, 11:08 AM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,500
Default 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 }
Andy is offline   Reply With Quote
Old 23rd January 2007, 11:37 AM   #5
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Default Re: Testing a new script

Thanks, Andy.
Thierry
thierry_st_malo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 08:45 AM.


AC3D Forum
(C) Inivis Limited 2020