Hi,
when the script is called it should call the command in the timeline "Bake Object" and set the parameters in the BaseContainer and then automatically call the Button "Bake"
I do not now how to access this, the ID's, of the command dialog.
script:
from typing import Optional
import c4d
doc: c4d.documents.BaseDocument # The active document
op: Optional[c4d.BaseObject] # The active object, None if unselected
def main() -> None:
c4d.CallCommand(465001219) # bake objects dialog
tool = c4d.plugins.FindPlugin(465001219, c4d.PLUGINTYPE_COMMAND)
# Here I want to access and set the dialogs parameters, set some checkboxes and press then the button
# this is probably the wrong way :-)
bc = tool.GetDescription(0)
for ide in bc:
print(tool.GetParameter(ide[1][0].id, 0), tool.GetParameter(ide[2][0].id, 0))
if __name__ == '__main__':
main()