3D Canvas is a program for 3D modelling and animation. It runs under Windows and you can get it for free at Amabilis. If you buy the Pro version you can write and run scripts and plugins to do many things. The author of 3D Canvas is Richard Borsheim.
This tutorial is by me,George Jenner.
In 3D Canvas scripts and plugins are little computer programs that run within the main program. Each line in a script contains an instruction. When you run a script within 3D Canvas, the lines in that script are executed one at a time: that is to say the instruction on that line of program code is carried out. Typically the instruction will have something to do with transforming the model you are working on within3D Canvas.
I use scripts to create objects and apply textures to them. You can also use them in the context of animation. I don't, so you won't find any help in that area on these pages. So rather than a tutorial it is really a description of my idiosyncratic use of the facility. The possibilities are infinitely more interesting than covered by my few pages.
You are welcome to use and change any program from these pages. For clarity (and my laziness) there is neither crash protection not input checking built into these programs. Please save your work before running them as crashing, freezing, and even rebooting, are possibilities.
You need 3D Canvas Pro. You can either copy and paste them to the \scripts directory in the 3D Canvas Program directory, or download them all in one bunch from here. Scripts only run from that directory, and are plain text files with a ".cs" ending. You may need to restart 3D Canvas to access them.
This is not the place to start, but it's not far from it. Most of this work is in VBScript, a version of Microsoft's Visual Basic. The B in Ba is for Beginners, but the extensions for using Basic in 3D Canvas may be confusing. You might like to go away and learn some basic Basic (or Javascript) first.
A good place to start is writing macros in a spreadsheet program, such as MS Excel. I even use Excel to debug my scripts sometimes. The languages are the same (or at least from the same stable and trainer) and Excel has an excellent environment for debugging.
The scripting editor in 3D Canvas is functional but limited, and debugging is limited by the constraints of the language.
Hey, aren't digital watches a nifty idea?
You'll have to get used to it.
Most of the scripts here are in VBScript.This is only because I started by modifying the example provided with 3D Canvas - which are in Visual Basic. You can use any language that supports the Microsoft Scripting Host: JScript, for example.
A plugin is like a script except that it is precompiled and is accessed by 3D Canvas as a .dll library file in the "plugins" directory.
As plugins are only useful for model creation (and not animation) they appear less useful. Plugins are more usefil than scripts when there is a lot of information required by the script. For example, if the script needed 10 numbers from the user to work, it would have to ask 10 questions. In a plugin written in a language (like Visual Basic and Delphi) that uses "forms", all the numbers can be displayed on one input form. You can also do things like access databases from plugins.
So far I have not noticed much difference in speed of execution between VBScript and plugins written in Visual Basic.
In Version 5.5 or 3D Canvas Frames where renamed as Groups (that is the Frame boxes around objects, not the animation Frames). All methods referring to Frames where also changed to reflect this. I hope I've caught all instances and fixed them, but maybe not. If your own scripts aren't running, this could be a cause.