Salut,
Je cherche un moyen de cliquer en Python sur un bouton d'une boîte de dialogue d'un module externe, en l’occurrence l'Export Octane Obj, mais rien à faire, le CallButton n'a aucun effet et le BaseContainer est vide. : /
Pourtant, c'est bien comme ça qu'on s'y prend ?
Code PHP:
import c4d
def iter_container(bc):
for index, value in bc:
print "Index: %i, Value: %s" % (index, str(value))
def main():
c4d.CallCommand(1025227) # #$1 Octane Export
mod = c4d.plugins.FindPlugin(1025227)
bc = mod.GetData()
IDB_OE_DLG_PROJECT_PATH = 10107
IDB_OE_DLG_EXPORT_ONLY = 11001
s = bc.GetData(IDB_OE_DLG_PROJECT_PATH)
print s # None
iter_container(bc) # Vide
c4d.CallButton(mod, IDB_OE_DLG_EXPORT_ONLY) # Aucun effet
if __name__=='__main__':
main()