CINEVERSITY

    Maxon Logo
    • Login
    • Search
    • Recent
    • Popular
    • Users
    • Groups

    Connecting two matrix objects via index nr.

    Question & Answers
    spline between two matrix
    2
    6
    559
    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.
    • RemoGambacciani
      RemoGambacciani last edited by Dr. Sassi

      Hey guys,

      I'm sure there is probably a quick way to connect/draw splines between two different matrix objects via their index numbers?! Maybe via nodes?

      Any hint appreciated 🙂

      Cheers, R.

      c40f655f-4e5f-4907-b061-9fa3165908f5-image.png

      1 Reply Last reply Reply Quote
      • Dr. Sassi
        Dr. Sassi last edited by Dr. Sassi

        Hi RemoGambacciani,

        Please look here at how to produce the splines for a static solution and how to produce the spline object for an animate-able solution.

        CV4_2024_drs_23_MGsc_01.c4d

        Here are the same Matrix objects as above, but they change position and rotation.

        CV4_2024_drs_23_MGsc_11.c4d

        Is that working for you?

        Cheers

        Dr. Sassi Sassmannshausen Ph.D.
        Senior Trainer, Maxon Master Trainer, L&D - Strategist
        Cinema 4D mentor since 2004, Member of VES, DCS.

        1 Reply Last reply Reply Quote
        • RemoGambacciani
          RemoGambacciani last edited by RemoGambacciani

          Thank you for that @Dr-Sassi !
          The second/animated one is really cool indeed!

          How can I control the number of connections? In my setup/matrix object, there are a couple more matrices...is there a way to link it to the number of matrices?
          I feel like it breaks if its more than 35 matrices....

          1 Reply Last reply Reply Quote
          • Dr. Sassi
            Dr. Sassi last edited by Dr. Sassi

            Thanks, RemoGambacciani, for the feedback.

            I'm unclear if you need more segments; the setup has a fixed number. If fixed, produce as in file 01 shown, then use it as in file 11 from above.

            If you like to change it over time, I do it this way:

            CV4_2024_drs_23_MGsc_21.c4d

            Screen Shot 2023-11-13 at 1.22.52 PM.jpg

            I produce just enough segments (copy the Spline from 01 many times, then "Connect+Delete"). The XPresso with the lower priority sets all Segments to zero, and the Xpresso with the higher priority sets the needed one to the points. Point numbers are in the Structure Manager.

            In the example, the Matrix (not the Matrix.1) is the one that rules.

            There are options in Python to produce Splines and segments, but I don't do Python here; that would be a question for the Maxon Developer Café.

            Priority-wise, there is always a problem with producing and moving the/just generated items. For example, if you use a Python script, the data should go into a list/tuple/dictionary. So it is available from the frame .calcualtion start. Again, it is not my place nor what I provide here.

            All the best!

            Dr. Sassi Sassmannshausen Ph.D.
            Senior Trainer, Maxon Master Trainer, L&D - Strategist
            Cinema 4D mentor since 2004, Member of VES, DCS.

            1 Reply Last reply Reply Quote
            • RemoGambacciani
              RemoGambacciani last edited by

              BIG THANKS @Dr-Sassi...you are killing it again 🙂
              This last one works for me!

              1 Reply Last reply Reply Quote
              • Dr. Sassi
                Dr. Sassi last edited by

                Thanks a lot for the kind feedback, RemoGambacciani.

                My best wishes for your project

                Dr. Sassi Sassmannshausen Ph.D.
                Senior Trainer, Maxon Master Trainer, L&D - Strategist
                Cinema 4D mentor since 2004, Member of VES, DCS.

                1 Reply Last reply Reply Quote
                • First post
                  Last post