Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Getting the workplane matrix

    Scheduled Pinned Locked Moved PYTHON Development
    8 Posts 0 Posters 706 Views
    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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 16/09/2012 at 04:45, xxxxxxxx wrote:

      Hey guys.
      Hope everyone is enjoying the R14, I certainly do. I have one question though regarding the workplane:
      Is there any way to retrieve the workplane's matrix? Didn't find anything in the python SDK documentation. Maybe someone stumbled upon it and can help me out.
      Thanx
      Phil

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 20/09/2012 at 06:59, xxxxxxxx wrote:

        Hi Phil,

        I'm afraid it's not possible to get the workplane matrix with Python in R14. The new snap system isn't accessible from Python.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 20/09/2012 at 12:56, xxxxxxxx wrote:

          Well that's too bad, but thanks for the info.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 20/09/2012 at 13:09, xxxxxxxx wrote:

            I think there's a solution for it (didn't try it though :D)

            make a null object...with xpresso tag...make that null global position and rotation = 0 (just connect constant 0 to global matrix...posion..rotation)

            now work with that null inside python as it's pinned to the work plane now

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 21/09/2012 at 00:02, xxxxxxxx wrote:

              Sadly that doesn't work either. But thanks for the suggestion.

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 21/09/2012 at 02:40, xxxxxxxx wrote:

                why not work?
                I think it must work 😄
                (u need to use python tag) and put priority of the tag to something after the xpresso tag...then in the python code try to read the global position (didn't try to read the global position but it must be accessable)

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 21/09/2012 at 02:54, xxxxxxxx wrote:

                  Maybe I get something wrong, but the null stays in the original 0,0,0. I think it's because the worldspace doesn't really change (which would also mess up keyframed animations) only the work plane changes and as I understand it, the working plane is just a snapping and modelling helper.
                  What I wanted to do was a script to set the selected object to the center of the (changed) workplane. I know there is the button to orient the current object to the workplane, but it doesn't center it.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 21/09/2012 at 04:07, xxxxxxxx wrote:

                    u dont need script then 😄
                    it's pretty simple ....use xpresso ...put condition node with flip flop ....with boolean check mark (user data boolean)
                    once u check ..it will trigger a condition ...which will position that object at 0 0 0
                    and to define the object u need a python node in side xpresso to get selection ...and transfer that selection as link

                    sounds complicated but it's simple 🙂

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post