works fine - i think i got an strange error before and trying CUSTOMFIELDLIST etc.
I got a plugin which returns, base on its settings a mesh or a spline. If i create an instance from my plugin using only GetVirtualObjects the Instance of my spline doesn't work.
so is there a way to use both in one plugin?
When i put a Python Generator or a Plugin under a Fracture Object ( explode or explode and connect) the Generator / Plugin won't update anymore.
See attached file for an simple example
to be honest - i don't know where my fault was. Unhappily i didn't commit the not working version. In my plugin i
already used a virtual doc for some other calculations. thank you!
vd.ExecutePasses(c4d.threading.GeGetCurrentThread(), True, True, True, c4d.BUILDFLAGS_NONE) md = c4d.modules.mograph.GeGetMoData(matrix) for m in md.GetArray(c4d.MODATA_MATRIX): rdPoints.append(m.off)
works like a sharm.
can't test it right now, but this should do the trick.
you'll need to install these packages to your c4d installation to make it work
import win32gui import win32ui import win32co from pynput.keyboard import Key, Controller handle = win32gui.FindWindow(0, "Texture Manager") try: if handle: keyboard = Controller() win32gui.SetForegroundWindow(handle) keyboard.press(Key.ctrl) keyboard.press(w) keyboard.release(Key.ctrl) keyboard.press(w) except: pass
Ok this was defently my fault. It works now.
I was using GetVirtualObjects instead of GetContour.