Subject:Getting started with sound forge scripting
Posted by: DAve_
Date:5/27/2005 7:43:21 AM
Hi all, I'm trying to get started with scripting, but really feel like I have jumped in the deep end, can anyone give me some pointers to start out. I'm looking at editing C# scripts (hopefully using visual studio .NET 2003) Building the DLL based on the sample code looks simple enough, but I'm interested in the ability to run a csh file straight from soundforge, as these will probably be easier to distibute to sound designers. How can I debug these scripts? Is it possible to use Visual Studio (as you can in VS.NET or word) so I can edit the script file with auto complete etc & add break points, or is it a case of back to the old school using printf's (or the c# equivelent)? Sorry if this is an obvious question but C# and scripting is all new to me ta, DAve |
Subject:RE: Getting started with sound forge scripting
Reply by: jetdv
Date:5/27/2005 8:45:20 AM
Yes, you can edit C# for use in SF8 in VS2003. That is what I have been using. To start, open SF8, click on a new C# script, and it will give you several lines. Copy those into a new C# project in VS2003 to give you a quick start. You will need to add the reference to Forge80.Script.dll in your C# project. With that in place, code completion will also be available. |
Subject:RE: Getting started with sound forge scripting
Reply by: ForumAdmin
Date:5/27/2005 9:09:19 AM
Using C# and Visual Studio, you can accomplish what you would like to do. Use C#/Visual Studio to debug and create a DLL. This will give you auto-complete and all the other nifty tricks that Visual Studio provides. Here's the trick: design your project so that all your code lives within a single .cs file. When you're finished writing your code, distribute the .cs file instead of the DLL. It's as simple as that. We've included a sample C# script in the SDK to get you started. Hope this helps. |
Subject:RE: Getting started with sound forge scripting
Reply by: DAve_
Date:5/27/2005 10:04:59 AM
Wow.. That is what I call a speedy response... And on a Friday afternoon as well (well Friday afternoon in this part of the world ;o) ) Thanks very much to you both for your posts, hopefully I'll get my first script up and running soon. Cheers, DAve |