Customize Palettes by Python ( add Buttons )
-
Hi,
Is there a way to insert a button to a Layout in C4D python ?
Thanks,
G -
Hey @Gemini,
Thank you for reaching out to us. Please have a look at Programmatically create a palette?. The TLDR is: There is no API for interacting with palettes, even internally we do not dynamically inject things into palettes (except for a few special cases) and instead rely on layout files.
Cheers,
Ferdinand -
Could you share information about layout editing if there are any python methods or threads here ?
-
Hey @Gemini,
as I just said, there aren't any, even in the non-public C++ API. When you want to provide a layout, you must save it as a layout file and then load it via
LoadFile
.Cheers,
Ferdinand