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

    Create presets for my own plugin.

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 383 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

      On 05/12/2016 at 16:02, xxxxxxxx wrote:

      Hello there,

      Is it possible to create presets for my own plugin?

      Let me explain: I want with a simple click run my plugin using for example the command "c4d.CallCommand(plugin_id)" then pre-fill all the dialog parameters then validate all.

      Thanks.

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

        On 06/12/2016 at 03:07, xxxxxxxx wrote:

        Hi,

        I'm not sure I'm completely following. Maybe you need to explain in a bit more detail, what you want to achieve.

        In general the values of your dialog are to be set in GeDialog.InitValues(). Where you get the value set you want from, is on you. For example, if you made sure, there's only one dialog and it is directly connected to your CommandData (which is usually the case, and demonstrated in the examples), there's nothing wrong with passing data to the dialog via a global variable.
        And for different presets you could perhaps use command sub-ids. See CommandData.GetSubContainer()  and CommandData.ExecuteSubID() for this. But I'm really not sure, this is what you are heading at.

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

          On 06/12/2016 at 14:57, xxxxxxxx wrote:

          Hi,

          I want to create a platform (dialog external to my plugin) with multiple presets.
          in this platform I have multiple button, every button correspond to one preset. to run a preset I press on one of buttons.

          **Exemple preset :

          ** Press button 1 or preset 1 = all the actions below :
          1 -  Run plugin "Texel Bake" using c4d.CallCommand(TexelBake_ID) see the screenshot below

          2 - Check the Unfractured and Add Rigid Body box then set the subdivision to 3 value
          3 - Press the Bake Now button.

          I hope that is clear.

          Thanks.

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

            On 07/12/2016 at 02:30, xxxxxxxx wrote:

            Hm, well, so what information are you missing exactly? I think, the info from my last post should enable you to achieve this. Or maybe I still haven't got the point.

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