How to get existing in scene custom TO’s data? I already asked on Blender Artists python support (no any reply) and Blender Stack Exchange (1 misunderstanding reply, at least I guess so ).
Everywhere people talk about this bpy.data.scenes['Scene'].transform_orientation_slots
.
Logically (at least for me… ), it should return existing TO’s (slots mean more than one… ). But it not return TO’s.
If I try to get it as list list(bpy.data.scenes['Scene'].transform_orientation_slots)
it return some 4 items (always 4, no matter how many custom TO’s exist) [bpy.data.scenes['Scene'].transform_orientation_slots[0], bpy.data.scenes['Scene'].transform_orientation_slots[1], bpy.data.scenes['Scene'].transform_orientation_slots[2], bpy.data.scenes['Scene'].transform_orientation_slots[3]]
First one [0] return current active TO data.
bpy.data.scenes['Scene'].transform_orientation_slots[0].type
'Cube_.003'
Others [1],[2],[3] return some useless ‘DEFAULT’ something
bpy.data.scenes['Scene'].transform_orientation_slots[1].type
'DEFAULT'
So yeah … how to get damn existing TO’s data? (not just currently active one)
I cant find out across the internet. Already tried all forms of googling. Looks like no one .except me, need such or I am (again) stupidest boy in the world and I don’t understand obvious for others things…
Can anyone help, please?
I already thinking about to astart digging inside Bledner source code to find how this TO dropdown menu deal with TO’s data. But I have never work with sources before so finding something inside sources looks for me a bit to *** heavy…