Setting XRef options via python?
-
Platform: Windows 10
Cinema4D: R21.207I 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!
-
Hi @jcooper I'm afraid this is unfortunately not possible.
Cheers,
Maxime. -
Hi,
without further feedback, we will consider this thread as solved by tomorrow and flag it accordingly.
Cheers,
Ferdinand -
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. -
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.
-
@ferdinand ok I will open another thread for this