WIP PyAPI from winter camp discussions, make subtypes of the base RNA python type, eventually allowing us to have python defined RNA classes in

python - lux/pov/renderman materials, lamps etc as well as operators.

At the moment there are 2 ways to do this, The first is like subclassing from python, another (disabled) method copies the base PyTypeObject struct 
and makes some changes.

The PyType is stored in the RNA Struct for reuse, right now there are no access functions - needs to be improved.

Added a python script for printing all blend file data to the console which helps testing the api.

dir(rna) wont work for python 2.x now, use rna.__dir__() instead.
This commit is contained in:
2009-03-11 17:28:37 +00:00
parent 891c3bc663
commit 64512d3e8e
10 changed files with 488 additions and 44 deletions

View File

@@ -162,6 +162,7 @@ def rna2epy(target_path):
for rna_struct in structs:
# print(type(rna_struct))
if rna_struct.nested:
continue