[Bf-taskforce25] RNA Naming convention

GSR gsr.b3d at infernal-iceberg.com
Wed Dec 3 05:10:38 CET 2008


Hi,
ideasman42 at gmail.com (2008-12-03 at 1451.33 +1100):
> 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)

Instead of making it special and as per
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA#Naming_Conventions
"Don't shorten names unnecessarily." use three_d instead of 3d (and
this example can be used to add the rule that identifiers must start
with lower case, for compability).

GSR
 


More information about the Bf-taskforce25 mailing list