You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
Best solution would be to not flatten nested dictionaries by prepending parent key names, and instead actually just use nested dictionaries.
ID prop group filtering and access can be done like this:
import bpy, idprop
cube = bpy.data.objects['Cube']
d = cube.get('tommy') # d is also a IDPropertyGroup, since it is assigned as a dict
for i in d.items():
print(i)
if isinstance(i[1], idprop.types.IDPropertyGroup):
print(i[1].__class__)
Results in:
('this', 'that') <-- 'that' is a normal string
('numbers', 100) <-- 100 is a normal integer
('doodeedoo', <bpy id prop: owner="OBCube", name="doodeedoo", address=0x000001A6CFD9BF48>)
<class 'IDPropertyGroup'>
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Best solution would be to not flatten nested dictionaries by prepending parent key names, and instead actually just use nested dictionaries.
ID prop group filtering and access can be done like this:
Results in:
The text was updated successfully, but these errors were encountered: