• Categories
    • Overview
    • News & Information
    • Cinema 4D SDK Support
    • Cineware SDK Support
    • ZBrush 4D SDK Support
    • Bugs
    • General Talk
  • Unread
  • Recent
  • Tags
  • Users
  • Register
  • Login
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
  • Register
  • Login

Setting window

Cinema 4D SDK
python
3
7
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.
  • P
    Passion3D
    last edited by Passion3D Feb 8, 2019, 8:45 PM Feb 7, 2019, 5:35 PM

    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
    • C
      Cairyn
      last edited by Feb 7, 2019, 6:42 PM

      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
      • P
        Passion3D
        last edited by Passion3D Feb 8, 2019, 3:40 AM Feb 7, 2019, 7:10 PM

        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
        • P
          Passion3D
          last edited by Passion3D Feb 8, 2019, 6:20 AM Feb 8, 2019, 4:18 AM

          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
            a_block
            last edited by Feb 8, 2019, 2:28 PM

            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
              a_block
              last edited by Feb 8, 2019, 8:22 PM

              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
              • P
                Passion3D
                last edited by Passion3D Feb 12, 2019, 8:07 PM Feb 8, 2019, 8:31 PM

                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
                4 out of 7
                • First post
                  Last post