VC_FLAGS
-
Hi,
Trying to make compatible some older plugin to latest Cinema4D, and faced an issue
AttributeError: module 'c4d' has no attribute 'VC_SAFETY'
when calling
targetPointObj.Message(c4d.MSG_POINTS_CHANGED, {"old_cnt": targetPointCountInitial, "new_cnt": targetPointCountNew, "vc_flags": c4d.VC_SAFETY})
I checked
symbols.h
— and there are only two flags exists now:VC_DONTCOPYDATA
andVC_DONTCLEARDATA
I don't remember why I put this message long time ago, maybe I just copy-pasted it from some example.
What should I do with it — remove, or change flag? -
Hi @baca VC_SAFETY has been removed in 2023.1, you do not need it anymore, since the message can't fail anymore.
You should keep it for old code but for new code, just leave the vc_flags empty will be enough.
Cheers,
Maxime.