CINEVERSITY

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

Connecting two matrix objects via index nr.

Question & Answers
spline between two matrix
2
6
1.2k
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 Nov 22, 2023, 5:24 AM Nov 13, 2023, 12:45 PM

    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.

    login-to-view

    1 Reply Last reply Reply Quote
    • Dr. Sassi
      Dr. Sassi last edited by Dr. Sassi Nov 13, 2023, 6:43 PM Nov 13, 2023, 6:42 PM

      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 Nov 13, 2023, 8:08 PM Nov 13, 2023, 8:03 PM

        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 Nov 13, 2023, 9:24 PM Nov 13, 2023, 9:22 PM

          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

          login-to-view

          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 Nov 14, 2023, 7:42 AM

            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 Nov 14, 2023, 11:11 PM

              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
              1 out of 6
              • First post
                1/6
                Last post