dynamic ui in c4d python sdk



  • 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,



  • 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 LayoutFlushGroup(...), and can create your  new elements afterwards.

    Commit your changes with a call of LayoutChanged(...).

    Cheers, s_rath



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

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

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


Log in to reply