Thank you for the reply Manuel
This one might be a bit odd to explain.
But i am wondering if one can load cinema4D files or edit them without loading them fully.
Imagine a scenario, where you have 20 c4d files, they all take a long time to open. and all you want is to edit a little thing in each of the files. you know exactly what to edit, and might even have a little script for it. But it will take ages to open each file in the GUI and do it manually.
Might command line be the way for this? to bypass the loading times? And if so, do people have any examples or reference on how to use the command line in that manner?
@iplai Thank you.
That seems to work. I assume c4d is doing this under the hood when we do the parent constraint manualy.
This is probably something one need to consider regarding other constraint aswell i assume.
Appreciate the comments in the solution code.
@bentraje Good tip, but doesnt work sadly, still offsetting
I am trying to make a little script that will parent constraint first selected object to second selected object (only selecting 2 objects)
The code so far is this:
from c4d import gui
objList = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_SELECTIONORDER | c4d.GETACTIVEOBJECTFLAGS_CHILDREN)
tag = c4d.BaseTag(c4d.Tcaconstraint)
tag()[c4d.ID_CA_CONSTRAINT_TAG_PARENT] = True
tag = objList
The issue however is a slight offsett in the position of the child object when running this script.
I tested doing it manualy - apply tag, activate parent, select object as target. When doing it manualy i get no offsett on the objects they all stay in palce as intended. BUT!
The local offsett get populated with values. While when running the script these values instead of getting applied in the Local offset of the tag, it gets populated in the freeze transform in the coordinates on the object.....
So the question is, am i missing something in this script to prevent it from nuddging?