[Bf-taskforce25] RNA Naming convention
Campbell Barton
ideasman42 at gmail.com
Wed Dec 3 04:51:33 CET 2008
Could identifier names starting with numbers be forbidden with RNA?,
this is messing up python which cant do
bpy.curves['MyCurve'].3d = True
(using setattr works but is ugly syntax)
On this topic it would be good to decide on toggle prefix
curve.use3D
curve.enable3D
curve.do3D
This brings up another issue, some options are inverted (buttons where
TOGN is used)
The flipping of the flag could be done within RNA, otherwise we'll
need to have naming conventions that show this...
curve.useSpam -> curve.dontUseSpam
curve.enableSpam -> curve.disableSpam
curve.doSpam -> curve.noSpam
If RNA doesn't give some flipped bit functionality enable/disable seem
the best options to me.
--
- Campbell
More information about the Bf-taskforce25
mailing list