wip operator py-api
"operator.ED_VIEW3D_OT_viewhome(center=1)" calls the operator, converting keyword args to properties. Need a way to run scripts in the UI for useful testing. Still need to deal with operator exceptions and verifying args against operator options. Added temporary WM_operatortype_first() to allow python to return a list if available operators, can replace this with something better later (operator iterator?)
This commit is contained in:
@@ -114,6 +114,7 @@ void WM_error(struct bContext *C, char *str);
|
||||
|
||||
/* operator api */
|
||||
wmOperatorType *WM_operatortype_find(const char *idname);
|
||||
wmOperatorType *WM_operatortype_first(void);
|
||||
void WM_operatortype_append (void (*opfunc)(wmOperatorType*));
|
||||
|
||||
int WM_operator_call (struct bContext *C, const char *opstring, int context, struct IDProperty *properties);
|
||||
|
||||
Reference in New Issue
Block a user