22nd August 2013, 10:27 AM | #1 |
Junior Member
Member
Join Date: Aug 2013
Location: London UK
Posts: 22
|
Importing other Tcl packages
AC3D comes with just Tcl/Tk. Can I include Itcl, TclOO or other Tcl standard packages into AC3D?
Can I just install Tcl/Tk 8.5 and copy the relevant parts into AC3D directory (or is there a better way?). |
23rd August 2013, 06:27 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Importing other Tcl packages
AC3D probably won't like a change of tcl library but you should be able to add other script extensions by editing the tcl files (in the Tcl folder).
|
27th August 2013, 07:32 AM | #3 |
Junior Member
Member
Join Date: Aug 2013
Location: London UK
Posts: 22
|
Re: Importing other Tcl packages
I found after experiment that if I copied the entire directory TclOO1.0 from the ActiveState installation of Tcl/Tk 8.5 then the command
package require TclOO does not give an error. I assume that I can then add commands and create scripts using TclOO extensions (which can of course call standard Tcl as used in AC3D). For completeness, the directory resides in this directory IF you have installed Tcl8,5 in /Tcl8.5: \Tcl8.5\lib\teapot\package\win32-ix86\lib However this technique did not work for the ITcl extension. |
|
|