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

    Setting XRef options via python?

    Cinema 4D SDK
    4
    6
    1.0k
    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.
    • jcooperJ
      jcooper
      last edited by jcooper

      Platform: Windows 10
      Cinema4D: R21.207

      I have a python script that adds an XRef to the current document and needs to set the "Relative to Project" option to False (0) so that the reference path will be an absolute path. How do I do this?

      Thanks!

      JOHN COOPER I TECHNICAL DIRECTOR
      PSYOP LA

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

        Hi @jcooper I'm afraid this is unfortunately not possible.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by

          Hi,

          without further feedback, we will consider this thread as solved by tomorrow and flag it accordingly.

          Cheers,
          Ferdinand

          MAXON SDK Specialist
          developers.maxon.net

          1 Reply Last reply Reply Quote 0
          • P
            paulgolter
            last edited by

            I know this thread was closed, I am facing the same issue tough.

            Is there any way to solve this somehow in cinema 2024 @ferdinand ?

            Main problem is, if pipelines want to do some dependency tracking, it's very hard to find the absolute path of the xref if ""Relative to Project" is off.

            Especially beacuse the realtive path being shown is simply random sometimes but cinema still manages to resolve it somehow.
            As the logic of how this relative path is resolved, or what the 'project' is that cinema uses for resolving is unclear, it's impossible to replicate this on our end in python.

            1 Reply Last reply Reply Quote 0
            • ferdinandF
              ferdinand
              last edited by ferdinand

              Hey Paul, I have quite frankly no clue what this thread was about due to this being four years old and being owned by Maxime (I only closed it).

              XRefs themselves do not have an 'Relative to Project' option, only the 'Add XRef Options' dialog has. When you have relative Xref paths in a project, I personally do not see any obstacles in making them absolute since they are relative to the project.

              Please open a new thread for your issue and describe your concrete problem properly. Provide an example scene/setup, etc.

              MAXON SDK Specialist
              developers.maxon.net

              1 Reply Last reply Reply Quote 0
              • P
                paulgolter
                last edited by

                @ferdinand ok I will open another thread for this 🙂

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