1

So in this video, he talks about making property some sort of "Field" for the new blender api https://youtu.be/Mjy-zGG3Wk4?t=108

but what is that field? I dont find reference on any web page. seems like no one used that in the history of python?

1 Answers1

1

Those are type declarations, and were introduced in Python 3.6. Blender 2.80 uses those to create the RNA properties. It was implemented by Campbell in 11 July 2018.

dr. Sybren
  • 7,139
  • 1
  • 23
  • 52
  • How could that extend if we create dynamic class using type() ? I have been scratching my head around this lately : type(“TestPropGrp”, (bpy.types.PropertyGroup,), {‘MyProp’:StringProperty(default=‘MyStr’)}) thx ! – Stan Paillereau Sep 10 '18 at 03:00
  • Interesting question. Not something to discuss in comments though,but deserving its own question. – dr. Sybren Sep 10 '18 at 06:34
  • Thx ! You're right, this definitely deserve its own question. I'd love to have your thoughts on this - https://blender.stackexchange.com/questions/118118/blender-2-8-field-property-declaration-and-dynamic-class-creation – Stan Paillereau Sep 11 '18 at 00:57