Missing(never published) 7.6 Scripting Docs

Post Reply
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Missing(never published) 7.6 Scripting Docs

Post by clintonman »

I was going through some old files and found these from the beta testing. There is the scripting fundamentals doc which is available at truespaceplugins.com and a general dev guide for the script editor which I don't see posted anywhere. I converted them to pdf to make them a little smaller for downloading. Also included are some sample scripts from the same source. I believe all of these items where written by Norm Fortier.
Attachments
DevGuide-Script Editor.zip
(2.37 MiB) Downloaded 334 times
Clinton Reese

http://clintons3d.com
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Missing(never published) 7.6 Scripting Docs

Post by froo »

nice thanks clintonman!

Froo
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Missing(never published) 7.6 Scripting Docs

Post by clintonman »

The PDF external links the msdn are bad in the PDF so here are the original word documents.
Attachments
Dev-Guides_original.zip
(2.97 MiB) Downloaded 333 times
Clinton Reese

http://clintons3d.com
User avatar
3dvisuals dude
Chief Warrant Officer
Posts: 643
Joined: 03 Jun 2009, 02:53
Type the number ten into the box: 0

Re: Missing(never published) 7.6 Scripting Docs

Post by 3dvisuals dude »

Excellent !!!! Thank You Clinton !!!!

Very well done too, I have needed these and will use them for sure! :bananacheers:
Image "Advantage is had from whatever is there, but usefulness arises from whatever is not." - Lao Tzu (Tao Te Ching - 500 BC) Image
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Missing(never published) 7.6 Scripting Docs

Post by trueBlue »

clintonman wrote: 29 Oct 2009, 15:22 I was going through some old files and found these from the beta testing. There is the scripting fundamentals doc which is available at truespaceplugins.com and a general dev guide for the script editor which I don't see posted anywhere. I converted them to pdf to make them a little smaller for downloading. Also included are some sample scripts from the same source. I believe all of these items where written by Norm Fortier.
Very long Belated... Thanks for sharing!
Found an issue with the ColorArray example.
jSsetColor script
Add
Data.SetDim(2)

Code: Select all

// Execute 
// Called to execute the command 
function Execute(params)
{

	var Names = params.ConValue('Names');
	var Data = params.ConValue('Data');

	Data.SetDim(2)	//	<---- Add SetDim

	var owner = System.ThisOwner();
	var target = owner + "/jScolor"; 
	var target = owner + "/jScolor2";
	for(i=0; i <Names.GetSize(); i++)
	{
		// find name of color in Data array:
		if(Data.GetAt(i,0) == Names.GetSelectedString())
		{
			//		Set values on jScolor
			Node.Value(target, 'SetRed') = Data.GetAt(i,1);
			Node.Value(target, 'SetGreen') = Data.GetAt(i,2);
			Node.Value(target, 'SetBlue') = Data.GetAt(i,3);
			Node.Value(target, 'GetRed') = Data.GetAt(i,1);
			Node.Value(target, 'GetGreen') = Data.GetAt(i,2);
			Node.Value(target, 'GetBlue') = Data.GetAt(i,3);
		}
	}
}
Made an example with an interface that allows you to set the named Color
Attachments
Color.RsObj
(59.6 KiB) Downloaded 199 times
Post Reply