Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    VC_FLAGS

    Cinema 4D SDK
    2024 python 2023
    2
    2
    368
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bacaB
      baca
      last edited by

      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 and VC_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?

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        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.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 1
        • First post
          Last post