I'm kind of curious if there's a python equivalent of uiLayoutSetActive()? -- which would probably take care of 99% of the if cases.
That's what I was talking about with a poll function, just pass a callable python object (or dump the contents of a <script> tag) to it like uiLayoutSetActive(subcol, PyObject_CallObject(foo, foo_arg)). Seems like since the functionality already exists it just needs a little python wrapper (or xml parser) love to replace the current if/else method of button visibility. Another plus is the conditional become part of the UI element and could theoretically be modified during a program run from scripts and such. _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
