Missing(never published) 7.6 Scripting Docs
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Missing(never published) 7.6 Scripting Docs
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
Re: Missing(never published) 7.6 Scripting Docs
nice thanks clintonman!
Froo
Froo
- clintonman
- Captain
- Posts: 5428
- 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
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
- 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
Excellent !!!! Thank You Clinton !!!!
Very well done too, I have needed these and will use them for sure!
Very well done too, I have needed these and will use them for sure!
"Advantage is had from whatever is there, but usefulness arises from whatever is not." - Lao Tzu (Tao Te Ching - 500 BC)
Re: Missing(never published) 7.6 Scripting Docs
Very long Belated... Thanks for sharing!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.
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);
}
}
}
- Attachments
-
- Color.RsObj
- (59.6 KiB) Downloaded 199 times