Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Picard <dam.pic@free.fr>2020-04-21 11:44:36 +0300
committerDamien Picard <dam.pic@free.fr>2020-10-28 20:34:33 +0300
commit857998f409951f2f2454756841abd43fd456587a (patch)
tree90307d09e7d69360b2b06c471702a6206e943e24 /presets
parent9a824ed39eda64693d2ebdf13298a3960e42a83d (diff)
Sun position: add time and place presets, remove reset operator
Diffstat (limited to 'presets')
-rw-r--r--presets/operator/sun_position/chongqing.py6
-rw-r--r--presets/operator/sun_position/kinshasa.py6
-rw-r--r--presets/operator/sun_position/london.py6
-rw-r--r--presets/operator/sun_position/new_york.py6
-rw-r--r--presets/operator/sun_position/sao_paulo.py6
-rw-r--r--presets/operator/sun_position/sydney.py6
6 files changed, 36 insertions, 0 deletions
diff --git a/presets/operator/sun_position/chongqing.py b/presets/operator/sun_position/chongqing.py
new file mode 100644
index 00000000..7054bde0
--- /dev/null
+++ b/presets/operator/sun_position/chongqing.py
@@ -0,0 +1,6 @@
+import bpy
+sun_props = bpy.context.scene.sun_pos_properties
+
+sun_props.UTC_zone = 8
+sun_props.latitude = 29.558300
+sun_props.longitude = 106.567000
diff --git a/presets/operator/sun_position/kinshasa.py b/presets/operator/sun_position/kinshasa.py
new file mode 100644
index 00000000..471c7dcf
--- /dev/null
+++ b/presets/operator/sun_position/kinshasa.py
@@ -0,0 +1,6 @@
+import bpy
+sun_props = bpy.context.scene.sun_pos_properties
+
+sun_props.UTC_zone = 1
+sun_props.latitude = -4.325000
+sun_props.longitude = 15.322200
diff --git a/presets/operator/sun_position/london.py b/presets/operator/sun_position/london.py
new file mode 100644
index 00000000..649b4e6f
--- /dev/null
+++ b/presets/operator/sun_position/london.py
@@ -0,0 +1,6 @@
+import bpy
+sun_props = bpy.context.scene.sun_pos_properties
+
+sun_props.UTC_zone = 0
+sun_props.latitude = 51.507200
+sun_props.longitude = -0.127500
diff --git a/presets/operator/sun_position/new_york.py b/presets/operator/sun_position/new_york.py
new file mode 100644
index 00000000..eac57e2c
--- /dev/null
+++ b/presets/operator/sun_position/new_york.py
@@ -0,0 +1,6 @@
+import bpy
+sun_props = bpy.context.scene.sun_pos_properties
+
+sun_props.UTC_zone = -5
+sun_props.latitude = 40.661100
+sun_props.longitude = -73.943900
diff --git a/presets/operator/sun_position/sao_paulo.py b/presets/operator/sun_position/sao_paulo.py
new file mode 100644
index 00000000..fc5f4619
--- /dev/null
+++ b/presets/operator/sun_position/sao_paulo.py
@@ -0,0 +1,6 @@
+import bpy
+sun_props = bpy.context.scene.sun_pos_properties
+
+sun_props.UTC_zone = -3
+sun_props.latitude = -23.550000
+sun_props.longitude = -46.633300
diff --git a/presets/operator/sun_position/sydney.py b/presets/operator/sun_position/sydney.py
new file mode 100644
index 00000000..d93dbbbd
--- /dev/null
+++ b/presets/operator/sun_position/sydney.py
@@ -0,0 +1,6 @@
+import bpy
+sun_props = bpy.context.scene.sun_pos_properties
+
+sun_props.UTC_zone = 10
+sun_props.latitude = -33.865000
+sun_props.longitude = 151.209000