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
    • Recent
    • Tags
    • Users
    • Login

    dynamic ui in c4d python sdk

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 389 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 06/03/2014 at 01:16, xxxxxxxx wrote:

      hi,
      i've checked the c4d python sdk for Dialog, it has a method 'CreateLayout', seems all the ui needs to be created here. i need to add/delete panel based on a button click event in command handler, i tried to put it in event handler (out of createlayout), seems it doesn't work.

      does anyone know about how to do a dynamic ui with c4d python sdk? it would be grateful if there's a sample.

      another question is, is there a collapsable panel/group in python sdk, i need a panel that should have a checkbox in the bar (it could be checked so that it could be deleted with a delete button)?
      do i need to derived from GeUserArea to define myself?

      thanks a lot,

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

        On 15/03/2014 at 11:55, xxxxxxxx wrote:

        You should create a group around the part you want to modify. When you want to change the layout (e.g. in your overwritten GeDialog.Command function) you flush the group with LayoutFlushGroupURL-REMOVED, and can create your  new elements afterwards.

        Commit your changes with a call of LayoutChangedURL-REMOVED.

        Cheers, s_rath


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

          On 16/03/2014 at 03:26, xxxxxxxx wrote:

          You can hide elements with GeDialog.HideElements (missing in the documentation)

          Check this out: https://developers.maxon.net/forum/topic/7549/9454_collapsingfoldable-groups-in-python&PID=37336#37336

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