Hi Ferdinand, thanks for the reply and I totally understand the out of scope of support part!
Thanks!
Regarding the freeze, my system specs are:
15", Apple M2 2023
macOS 13.5.2 (22G91)
C4D 2024.4.0
Just trying to import ctypes freezes C4D instantly.
Regarding the SpecialEventAdd() case:
I essentially want to act after a threaded operation is finished. So the last line of my threaded function calls:
c4d.SpecialEventAdd(ids.PLUGIN_ID_EXPORT)
To distinguish between different types of export I thought I could use the p1 (x) e.g.: c4d.SpecialEventAdd(ids.PLUGIN_ID_EXPORT, x)
However when using this inside my dialog, I'm not sure how to receive the different p1 or p2 integers inside the CoreMessage():
def CoreMessage(self, id, msg):
if id == ids.PLUGIN_ID_EXPORT:
logger.info("PLUGIN_ID_EXPORT Message")
if msg == x:
logger.info("Finished thread Message")
do_some_logic_here()
return True
return False
So what I'm asking is: I think different int
are sufficient enough for my case, but I'm not sure how to receive those correctly within the CoreMessage or Message of a commanddata plugin.
Thanks again,
Lasse