5th September 2006, 09:30 AM | #1 |
Senior Member
Professional user
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
|
Accept VBScript or JavaScript
It would be very nice if we could develop plugins or whatever in an accessible language like VBScript or JavaScript, bypassing any esoteric C or C++ libraries. Personally, I have a host of simple but very useful functions (guidelines, Coons surfaces, Gordon surfaces, and the like) that were available in my own VPlot 3D modeling software and that could be very easily ported to AC3D. Problem is : they are coded in Visual Basic.
What do you think? Cheers, Thierry |
5th September 2006, 09:48 PM | #2 |
Senior Member
Professional user
Join Date: Mar 2006
Location: elma washington
Posts: 805
|
Re: Accept VBScript or JavaScript
sorry if this sounds like a stupid question. but what is Vplot?
|
6th September 2006, 04:29 AM | #3 |
Junior Member
Member
Join Date: Aug 2006
Posts: 17
|
Re: Accept VBScript or JavaScript
If anybody is going to add a scripting language to AC3D, I heartly recommend Lua (www.lua.org). The language is very simple and clean and the embedding of the engine in a C/C++ app is quite straightforward.
Bye!!! |
6th September 2006, 09:00 AM | #4 | |
Member
Expert member
Join Date: Aug 2003
Location: Eslöv, Sweden
Posts: 93
|
Re: Accept VBScript or JavaScript
Quote:
http://www.ac3d.org/forum/showthread.php?t=2132 The main obstacle though is how the plug in should expose the interface to whatever using it and still be a plug-in loaded into AC3D. Andy mentioned something about a wrapper interface to the tcl scripting, that could parhaps be the solution - haven't looked into it though. |
|
7th September 2006, 04:34 AM | #5 |
Member
Expert member
Join Date: Aug 2003
Location: Eslöv, Sweden
Posts: 93
|
Re: Accept VBScript or JavaScript
By the way, you've re-triggered my interest for it and I'll look into what could be done by having a totally separate (ie not AC3D plugin) interface to AC3D through sockets or tcl.
Main challenge is to design an object model so one could do stuff like (pesudo-code): ac3d = CreateObject("ac3dCOMProxy") ac3d.Select(ac3d.GetObjectByName("cylinder")) ac3d.Selection.Move(10,20,30) ac3d.Selection.Rotate(...) obj = ac3d.GetObjectByPos(200,10,23) obj.Move(10,-20,30) obj.Scale(1,1,10) vertArr = obj.GetVertices(); i=0 for each v in vertArr v.y = SomeFuncComputingY(i) i = i + 1 next . . . etc Last edited by PerFnurt; 7th September 2006 at 04:38 AM. |
|
|