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
    • Register
    • Register
    • Login

    Update Xref filepath without user interaction

    Cinema 4D SDK
    python 2023 windows
    2
    2
    498
    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.
    • BigRoyB
      BigRoy
      last edited by

      I'm looking to update filepath of an Xref via Python without user interaction requiring the "Yes" on a popup dialog.

      This works:

      xref.SetParameter(
          c4d.ID_CA_XREF_FILE,
          filepath,
          c4d.DESCFLAGS_SET_USERINTERACTION,
      )
      

      But that basically means I will get this pop-up dialog:
      c0a78c0f-923a-4b74-87fc-d4536cfac6f5-image.png

      However I want to do this without any user interaction in-between. How can I force the update without requiring the c4d.DESCFLAGS_SET_USERINTERACTION flag.

      How can I update the filepath without the pop-up dialog?


      This has come up often before, see here:

      • http://developers.maxon.net/forum//post/63608
      • https://developers.maxon.net/forum/topic/14319/does-xref-or-xref-simple-are-now-accessible-with-python
      • http://developers.maxon.net/forum//post/63554

      But from back in 2020 through 2022 these remained lingering with "impossible". But hey, the future is bright and now. How do we do this? (From Python)

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

        Hey BigRoy, sadly it's still impossible, I will start the discussion again, thanks for the reminder.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

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