CINEVERSITY

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

    Finding lowest Y-coordinate of null object with children

    Question & Answers
    2
    2
    93
    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.
    • M
      Markeee last edited by

      Hi,

      I'm trying to figure out a way to calculate the following:

      In a named null, there are various objects. I need to figure out the lowest Y-coordinate of it (or basically, the lowest Y coordinate of the lowest child).

      I'm writing a script that will move another object to within 0.001 cm of this lowest point, hence why I need to know the above.

      I'm currently programming in Python, but if you know the steps I can likely reproduce this with code I imagine.

      Thanks for any insights.

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

        Hi Markeee,

        Any code development needs to be done with the Developer Forum.

        https://developers.maxon.net/forum/

        I can't check if the shared code is not swapped out. Hence, a security problem would be possible.
        So, there is no code here.

        What you need is the Python Node in XPresso, and read the values into a list, then call the min value from that list.

        I'm not supporting code development here; please use the link above if you have any questions.

        Examples are easy to find (google it).

        My best wishes

        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