Update (if anyone cares or is interested) :roll:
I found this at http://aspn.activestate.com/ASPN/Mai...users/1705824:
Rough code sample adapted from NCDemo, this won't work as is:
Code:
from wxPython.wx import *
from pyIFC import *
import win32api
class Frame(wxFrame):
def __init__(self):
hinst = win32api.GetModuleHandle(None)
hwnd = self.GetHandle() # wxFrame window handle
self.dev = CImmDevice_CreateDevice(hinst, hwnd)
if self.dev != None:
self.tact = pyImmProject()
#This is an example of loading effects from an .ifr file
#created with IStudio, but you can create effects directly too.
if self.dev.GetDeviceType() == IMM_DEVICETYPE_DIRECTINPUT:
self.tact.OpenFile("NCTextureJoy.ifr", self.dev)
def playeffect(self)
#play an effect from the .ifr file:
self.tact.Stop()
effect = ? # some effect in the .ifr file
self.tact.Start(effect,IMM_EFFECT_DONT_CHANGE)
Does anyone here know python well? The file NCTextureJoy.ifr is the file that is created by Immersion Studio.