1
$\begingroup$

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?

$\endgroup$
1
$\begingroup$

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.

$\endgroup$
  • $\begingroup$ 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 ! $\endgroup$ – Stan Paillereau Sep 10 '18 at 3:00
  • $\begingroup$ Interesting question. Not something to discuss in comments though,but deserving its own question. $\endgroup$ – dr. Sybren Sep 10 '18 at 6:34
  • $\begingroup$ Thx ! You're right, this definitely deserve its own question. I'd love to have your thoughts on this - blender.stackexchange.com/questions/118118/… $\endgroup$ – Stan Paillereau Sep 11 '18 at 0:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.