Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. Mats
    M

    Mats

    @Mats

    0
    Reputation
    5
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    Mats Follow

    Best posts made by Mats

    This user hasn't posted anything yet.

    Latest posts made by Mats

    RE: Edit C4D files without loading them fully

    I see.
    Thank you for the reply Manuel 🙂

    posted in General Talk •
    Edit C4D files without loading them fully

    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?

    Cheers

    posted in General Talk •
    RE: C4D Parent constraint python

    @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.

    posted in Cinema 4D SDK •
    RE: C4D Parent constraint python

    @bentraje Good tip, but doesnt work sadly, still offsetting 😞

    Python_Parentconstraint_C.gif

    posted in Cinema 4D SDK •
    C4D Parent constraint python

    Hi.

    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:

    import c4d
    from c4d import gui
    
    objList = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_SELECTIONORDER | c4d.GETACTIVEOBJECTFLAGS_CHILDREN)
    
    
    tag = c4d.BaseTag(c4d.Tcaconstraint)
    objList[0].InsertTag(tag)
    tag()[c4d.ID_CA_CONSTRAINT_TAG_PARENT] = True
    tag[30001] = objList[1]
    c4d.EventAdd()
    

    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?

    • Cinema 4D 2023
    • Windows 10 64x
    posted in Cinema 4D SDK •