Hi All,
Just wondering if it is possible to embedd an ActiveX control in a script?
Hi All,
Just wondering if it is possible to embedd an ActiveX control in a script?
lf by ActiveX you mean a control then no. You can however use COM objects if you have the win32com python module. The question is really whether you’d want to. Python has a module for anything you’d need ActiveX for.
Yeah, but if I write my own ActiveX control, python does not have that!
Is the win32com module an extra install? I have python 2.4 installed. Is that enough?
Yes, Python-Win32 is a separate install. It is large, and it is complicated. It does give you access to nearly every Windows API and Interface though. You probably couldn’t “embed” an activeX control, but you could talk to it, bring it up in it’s own window, link to an html page with it embedded, etc.
You could hqx encode (or other text encoding) the ActiveX control and have it in your python script as a variable then have your python script decode it and save to disk so you can use it, if thats what you mean by embed, you could not use it without first extracting it I dont think.
You can embed any files that way, whether or not its practical I dont know, I dont think Id want someone extracting ActiveX controls without me knowing
Just looking for an alternate way to get things done…
if you want to do weired crazy stuff, that ok. and even really usefull at times, but I expect most of the time youll be the only person who ends up using the script (That may be fine )
For instance, I wrote a tool that took a mesh, wrote it out to an external file and performed http://gts.sourceforge.net/ functions, at the time their boolaean was better then blenders. - but I only used it a few times… just advice.