blendersynth.utils.layout
- blendersynth.utils.layout.AREA_TYPES = ['VIEW_3D', 'IMAGE_EDITOR', 'NODE_EDITOR', 'SEQUENCE_EDITOR', 'CLIP_EDITOR', 'DOPESHEET_EDITOR', 'GRAPH_EDITOR', 'NLA_EDITOR', 'TEXT_EDITOR', 'CONSOLE', 'INFO', 'TOPBAR', 'STATUSBAR', 'OUTLINER', 'PROPERTIES', 'FILE_BROWSER', 'SPREADSHEET', 'PREFERENCES']
List of all area types
- blendersynth.utils.layout.change_area_to(area_type_from, area_type_to)[source]
Change the first area found.
- Parameters:
area_type_from (
str
) – Area type to change from (one ofAREA_TYPES
)area_type_to (
str
) – Area type to change to (one ofAREA_TYPES
)
- blendersynth.utils.layout.get_area(area_type)[source]
Return the first found area of the given type.
- Parameters:
area_type – Area type to get (one of
AREA_TYPES
)- Return type:
Area
- blendersynth.utils.layout.get_areas(area_type)[source]
Yield all areas of the given type.
- Parameters:
area_type – Area type to get (one of
AREA_TYPES
)