Problems using an external reference from Script

Lazze wrote on 5/27/2004, 6:07 AM

Hi,

Just started making Vegas scripts - I'm not really a "script"-person - so I intented to make a C# assembly which I could "import" into the script and tet it do the job.

Made a VERY simple c# dll that I have StrongNamed and added to the GAC via GACUtil. I have also run RegAsm.

If I compile my script at the prompt using "jsc" it works fine. When I try to run it from withing Vegas is says that it can't find my class ( ie the import statement fails ).

Are there any special considerations I should have in mind when I develop for Vegas ( v5.0 )?

Best regards,

Lazze Z

Sweden

JSCRIPT code snippet:

import clVEGAS.clVegas; <-- My Namespace/class
var c = new clVEGAS.clVegas();
MessageBox.Show ( c.Hello() );

The NEW statement fails in Vegas.

Comments

jetdv wrote on 5/27/2004, 7:22 AM
There is some information on doing things like this in this forum which you should be able find with a search. Another good place to look is:

http://www.ayizwe.net/VegasScripts/
Lazze wrote on 5/27/2004, 1:05 PM

Thanks JETDV(Edward?)

After a thorough search in the forums I found it ( search hit nr 126 )

So now everything works like a charm! I'm so happy - gives me great satisfaction - defeating the machine :-)

// Lazze
jetdv wrote on 5/27/2004, 6:14 PM
Yes, it's Edward.

Glad you found it.