-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
38 lines (27 loc) · 892 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import bpy
from bl_ui import properties_output
from .properties_output_flipres import classes
bl_info = {
"name": "Flip Resolution",
"author": "Spectral Vectors",
"version": (1, 2),
"blender": (2, 80, 0),
"location": "Properties > Output > Format",
"description": "Switches your render from Landscape to Portrait and back",
"category": "Render"
}
output_props = [cls for cls in properties_output.classes]
def register():
for cls in output_props:
if cls.is_registered:
bpy.utils.unregister_class(cls)
for cls in classes:
bpy.utils.register_class(cls)
def unregister():
for cls in classes:
bpy.utils.unregister_class(cls)
for cls in output_props:
if not cls.is_registered:
bpy.utils.register_class(cls)
if __name__ == "__main__":
register()