Skip to content
Snippets Groups Projects
Commit b1b4c8dd authored by Luise Odenthal's avatar Luise Odenthal
Browse files

flake8 test

parent 6e34bbf9
No related branches found
No related tags found
No related merge requests found
...@@ -47,11 +47,11 @@ class Cyberbee(): ...@@ -47,11 +47,11 @@ class Cyberbee():
# Filtering props # Filtering props
bpy.context.scene.cycles.filter_type = 'GAUSSIAN' bpy.context.scene.cycles.filter_type = 'GAUSSIAN'
# Call all set function with default values # Call all set function with default values
self.camera_rotation_mode='XYZ' self.camera_rotation_mode = 'XYZ'
self.camera_fov() self.camera_fov()
self.camera_gaussian_width=1.5 self.camera_gaussian_width = 1.5
self.camera_resolution() self.camera_resolution()
self.cycle_samples=30 self.cycle_samples = 30
# switch on nodes # switch on nodes
# Create render link to OutputFile with Image and Z buffer # Create render link to OutputFile with Image and Z buffer
bpy.context.scene.use_nodes = True bpy.context.scene.use_nodes = True
...@@ -183,8 +183,8 @@ class Cyberbee(): ...@@ -183,8 +183,8 @@ class Cyberbee():
self.camera.data.cycles.longitude_max) self.camera.data.cycles.longitude_max)
return fov return fov
#@camera_fov.setter # @camera_fov.setter
def camera_fov(self, latmin=-90, latmax=+90, def set_camera_fov(self, latmin=-90, latmax=+90,
longmin=-180, longmax=+180): longmin=-180, longmax=+180):
"""change the field of view of the panoramic camera """change the field of view of the panoramic camera
...@@ -269,8 +269,8 @@ class Cyberbee(): ...@@ -269,8 +269,8 @@ class Cyberbee():
resolution_y = bpy.context.scene.render.resolution_y resolution_y = bpy.context.scene.render.resolution_y
return resolution_x, resolution_y return resolution_x, resolution_y
#@camera_resolution.setter # @camera_resolution.setter
def camera_resolution(self, resolution_x=360, resolution_y=180): def set_camera_resolution(self, resolution_x=360, resolution_y=180):
"""change the camera resolution (nb of pixels) """change the camera resolution (nb of pixels)
......
...@@ -47,11 +47,11 @@ class Cyberbee(): ...@@ -47,11 +47,11 @@ class Cyberbee():
# Filtering props # Filtering props
bpy.context.scene.cycles.filter_type = 'GAUSSIAN' bpy.context.scene.cycles.filter_type = 'GAUSSIAN'
# Call all set function with default values # Call all set function with default values
self.camera_rotation_mode='XYZ' self.camera_rotation_mode = 'XYZ'
self.camera_fov() self.camera_fov()
self.camera_gaussian_width=1.5 self.camera_gaussian_width = 1.5
self.camera_resolution() self.camera_resolution()
self.cycle_samples=30 self.cycle_samples = 30
# switch on nodes # switch on nodes
# Create render link to OutputFile with Image and Z buffer # Create render link to OutputFile with Image and Z buffer
bpy.context.scene.use_nodes = True bpy.context.scene.use_nodes = True
...@@ -183,7 +183,7 @@ class Cyberbee(): ...@@ -183,7 +183,7 @@ class Cyberbee():
self.camera.data.cycles.longitude_max) self.camera.data.cycles.longitude_max)
return fov return fov
#@camera_fov.setter # @camera_fov.setter
def camera_fov(self, latmin=-90, latmax=+90, def camera_fov(self, latmin=-90, latmax=+90,
longmin=-180, longmax=+180): longmin=-180, longmax=+180):
"""change the field of view of the panoramic camera """change the field of view of the panoramic camera
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment