Using ocx control in C# projetc


https://forum.reallusion.com/Topic2628.aspx
Print Topic | Close Window

By keith_20090922181222537 - 18 Years Ago
(Originally posted in wrong forum in error)

I am trying to use the CT ocx control in a Visual Studio C# project. The control on the form ok, and I can assign a model and set life mode, but it will not play a script no matter what I try. I know the script file is ok because I can use it in CT Studio.

I have tried assigning the script file pathname to the ScriptName property in code and in the designer, and set ScriptReady = true. The ScriptCached event fires but the PlayEvent never fires. It makes no difference if I set it to auto play or use the Play menu.

Is there any documentation on using the control in this way?

Many thanks for any help you can give.

Keith

By keith_20090922181222537 - 18 Years Ago
If anyone else is interested in embedding CrazyTalk output in an application, and is dissapointed that there has been no response to the post on this topic, then here is some information that may help.

CT v5 will be able to export Flash flv format video, so one option if you want to make it available in a Windows application is to use the Flash.ocx. Unfortunately, there are a number of problems documented on the web re using this control. But have a look at F-in-Box (www.f-in-box.com) they provide a wrapper for the flash.ocx that enables it to be used easily and can play video from a stream (rather than a temp file) and lots of other nice things.

Keith