Scripting info
 
Notifications
Clear all

[Sticky] Scripting info

20 Posts
5 Users
0 Reactions
5,859 Views
Posts: 353
(@stempile)
Reputable Member
Joined: 19 years ago
KC wrote:Size is a structure defined in System.Drawing. Is it not acting correctly?

It does. There was a learning curve on C# however.

ms


Reply
Posts: 54
(@kiwichristmas)
Trusted Member
Joined: 20 years ago

Ok, been playing some more, heres how it is working for me so far


void Start() {

// Set Frame defaults

		TextHeight = 15;
		BoardLayout = new Size(1, 2);
		FontName = "arial";

//  FontStyle = System.Drawing.FontStyle.Bold;
//  options : Bold, Italic, Regular, Strikeout, Underline


//Create Frame 1
		FrameLength = 30;
		FontStyle = System.Drawing.FontStyle.Bold;
		TextPosition = LedTriks.Position.Percent;
		TextPositionValue = 10;
		TextScrollDirection = LedTriks.ScrollDirection.Left;
		Frame[] F1 = GenerateText("Top");
		OutputFrames(F1);
		WaitForEnd();

//Create Frame 2
		FrameLength = 20;
		TextScrollExtent = LedTriks.ScrollExtent.OnAndOff;
		FontStyle = System.Drawing.FontStyle.Underline;
		TextPosition = LedTriks.Position.Bottom;
		TextScrollDirection = LedTriks.ScrollDirection.Right;
		Frame[] F2 = GenerateText("Bottom");
		OutputFrames(F2);
		WaitForEnd();	

//Create Frame 3
		FrameLength = 40;
		TextScrollExtent = LedTriks.ScrollExtent.OnAndOff;
		FontStyle = System.Drawing.FontStyle.Italic;
		TextPosition = LedTriks.Position.Pixel;
		TextPositionValue = 5;
		TextScrollDirection = LedTriks.ScrollDirection.Down;
		Frame[] F3 = GenerateText("pixels");
		OutputFrames(F3);
		WaitForEnd();	

//Merge the frame 1 and 2 into a new frame calle O1
		Frame[] O1 = MergeFrames(F1, F2);
//Merge the frame O1 and Frame 3
		Frame[] O2 = MergeFrames(O1, F3);
		OutputFrames(O2);
		WaitForEnd();	
}

Reply
cobraman44
Posts: 258
(@cobraman44)
Reputable Member
Joined: 19 years ago

I am sure I am doing something stupid, but every time I try to run a ledtriks script I get.
ScriptEngine.dll is missing or does not contain a valid engine.
It is in the Vixen directory and I tried to copy it to the script modules directory and neither worked. I do select the LedTriksScript.dll module in the module list. Is there anything out there on how to setup and run a script?


Reply
Posts: 353
(@stempile)
Reputable Member
Joined: 19 years ago

in vixen click sequence / new event sequence / vixen script project
paste in the code
click script / modules and tick ledtrikes
click sript / attached plugins and choose ledtriks
click on plugin setup and tick use with scripted sequence
press F5 to compile and execute, you should see the countdown scroll across
the panel.

ms


Reply
cobraman44
Posts: 258
(@cobraman44)
Reputable Member
Joined: 19 years ago

That is exactly what I am doing and I get the error. I will try it on another computer and see what happens

Well I tried on a couple of different systems and all get the error. But through the GUI it works great. Another thing to mention is when I compile the code I get no error. I only get the error when I choose compile and execute.


Reply
Posts: 54
(@kiwichristmas)
Trusted Member
Joined: 20 years ago

With the latest version of Vixen 2.0.3.3, KC has out done himself (and thats saying something).
He has added the following

* LedTriks scripting now accomodates static, non-scrolling text (using new ScrollDirection.None).
[NOTE: The available properties and methods have changed due to this change.]
* Added ability to load frames from a sequence for LedTriks scripting.

There are some changes to the coding, the following have been replaced
TextPosition = LedTriks.Position.Pixel;
TextPositionValue = 10;

With

TextHorzPosition = LedTriks.HorzPosition.Pixel;
		TextHorzPositionValue = 2;
		TextVertPosition = LedTriks.VertPosition.Pixel;
		TextVertPositionValue = 10;

and this code will load and execute a ledtriks Sequence

Frame[] O1 = LoadFramesFromSequence("123.led"); //file in the Sequence folder
		OutputFrames(O1);
		WaitForEnd();

If your looking for standard script commands it is written in C#, a quick google will find coding examples.

Kiwichristmas


Reply
cobraman44
Posts: 258
(@cobraman44)
Reputable Member
Joined: 19 years ago

Well I tried on a couple of different systems and all get the error. But through the GUI it works great. Another thing to mention is when I compile the code I get no error. I only get the error when I choose compile and execute.


Reply
Posts: 705
 KC
Topic starter
(@kc)
Prominent Member
Joined: 20 years ago

Thanks for putting this out there. I'm glad someone's keeping me honest.


Reply
cobraman44
Posts: 258
(@cobraman44)
Reputable Member
Joined: 19 years ago

Just so you know KC. I installed a fresh copy of Vixen. No error. I copied my sequences to the new install and all works fine. I continue to get the error on the original install. Both are updated to the latest patches.


Reply
Posts: 705
 KC
Topic starter
(@kc)
Prominent Member
Joined: 20 years ago

If you feel up to it, you could zip up both installations and email them to me (kc@...), just for curiosity's sake.


Reply
Page 2 / 2
Share: