Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Setting window

    Cinema 4D SDK
    python
    3
    7
    1.4k
    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.
    • Passion3DP
      Passion3D
      last edited by Passion3D

      Hi
      I am work to write a plugin to manipulate an object and its axis. But I do not find how to put options in the settings window, like, for example, when you click on Move, Scale or Rotate.

      1 Reply Last reply Reply Quote 0
      • CairynC
        Cairyn
        last edited by

        What type of plugin are you writing? If it's a ToolData, you need a Description which you can either create at runtime through GetDDescription, or if it's static you can just add a .res file containing the description.

        You may consider look at a ToolData sample project like EdgeCutTool which would probably answer your question already?

        I'm not sure what you mean by "the settings window" though, normally that would be the tool's description in the Attribute Manager, see above. If you look for a method to add data to an existing description of a tool that you didn't write yourself (like Move, Scale, or Rotate), that is not possible. If you are looking for entries in the Preferences, you will need to register a PrefsDialogObject.

        I'm sure the Maxon team can help you farther but perhaps you can elaborate in the meantime.

        1 Reply Last reply Reply Quote 1
        • Passion3DP
          Passion3D
          last edited by Passion3D

          The main function of the plugin is to place the object on the floor. The options I want are:

          • Do not touch the axis
          • Place the axis in the center of the object
          • Place Y axis at the base of the object

          @Cairyn
          I will, as you suggest, review EdgeCutTool in detail.

          1 Reply Last reply Reply Quote 0
          • Passion3DP
            Passion3D
            last edited by Passion3D

            Thanks @Cairyn for your clues 😉
            It was me who was not looking at the right place in the doc.
            I am still a beginner in C4D programming 🙂

            1 Reply Last reply Reply Quote 0
            • a_blockA
              a_block
              last edited by

              Hi Passion3D,

              no worries, in German we say, no master ever fell from the sky. I'm glad @Cairyn could get you going.

              One request from my side, please consider using our tagging system instead of adding "Python: " to the subject. Thanks! ☺

              Cheers,
              Andreas

              1 Reply Last reply Reply Quote 0
              • a_blockA
                a_block
                last edited by

                Aaargh, sorry, I had wanted to add a link to one of ourPython SDK examples, basically accompanying Cairyn's explanations:
                Py-LiquidPainter - A ToolData example
                link text

                1 Reply Last reply Reply Quote 0
                • Passion3DP
                  Passion3D
                  last edited by Passion3D

                  Thanks @Andreas 😉
                  I watched Py-LiquidPainter, but I did not really understand 🙂
                  That said, for the parameters, I understood how to do

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