[Bf-committers] PyRNA type definition changes (postpone beta until end of week)
bkurdali at freefactory.org
Thu Sep 9 04:41:14 CEST 2010
> Another change to help our api be less confusing is to have operator
> properties directly accessible.
> class Operator(bpy.types.Operator):
> myprop = bpy.props.BoolProperty()
> def execute(self, context):
> ... this line
> ...could be written as
> At the moment print(self.myprop) will print the property definition,
> but not the property (which is what you want!)
> I'd like to keep self.properties available since its how operators
> work internally and can be passed as keyword arguments, so this change
> is mostly for convent access.
The question that came to mind here (as I mentioned on irc) is that if
you *did* want to print/access the property definition, how would you do
so if self.myprop just returns the value?
PS- thanks for the mail, it cleared up some things that had been long
confusing me re. the api.
More information about the Bf-committers