Go Back   AC3D Forums > General > AC3D Suggestions
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 5th September 2006, 09:30 AM   #1
thierry_st_malo
Senior Member
Professional user
 
Join Date: Feb 2006
Location: Saint-Malo, France
Posts: 148
Red face 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
thierry_st_malo is offline   Reply With Quote
Old 5th September 2006, 09:48 PM   #2
nightoftheroundtable
Senior Member
Professional user
 
nightoftheroundtable's Avatar
 
Join Date: Mar 2006
Location: elma washington
Posts: 805
Default Re: Accept VBScript or JavaScript

sorry if this sounds like a stupid question. but what is Vplot?
nightoftheroundtable is offline   Reply With Quote
Old 6th September 2006, 04:29 AM   #3
latego
Junior Member
Member
 
Join Date: Aug 2006
Posts: 17
Default 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!!!
latego is offline   Reply With Quote
Old 6th September 2006, 09:00 AM   #4
PerFnurt
Member
Expert member
 
Join Date: Aug 2003
Location: Eslöv, Sweden
Posts: 93
Default Re: Accept VBScript or JavaScript

Quote:
Originally Posted by thierry_st_malo View Post
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
I think it is a terrific idea. Actually I've been thinking about implementing support for it (through a plug in) for some years now
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.
__________________
/Per

www.perfnurt.se
PerFnurt is offline   Reply With Quote
Old 7th September 2006, 04:34 AM   #5
PerFnurt
Member
Expert member
 
Join Date: Aug 2003
Location: Eslöv, Sweden
Posts: 93
Default 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
__________________
/Per

www.perfnurt.se

Last edited by PerFnurt; 7th September 2006 at 04:38 AM.
PerFnurt 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 06:42 AM.


AC3D Forum
(C) Inivis Limited 2020