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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-07-06 05:05:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-06 05:05:27 +0300
commit432bfbf7a3b74943b1c251c12bd76616da23991f (patch)
tree4fff10c2aaca9d48ac4ccc1b368124ce102a53a1 /release/scripts/templates_py
parent36584bbc2d347cc1df9fd77b59ff1a3d3d7fef53 (diff)
Cleanup: pep8
Diffstat (limited to 'release/scripts/templates_py')
-rw-r--r--release/scripts/templates_py/image_processing.py4
-rw-r--r--release/scripts/templates_py/operator_mesh_add.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/templates_py/image_processing.py b/release/scripts/templates_py/image_processing.py
index 2392faf440c..ab14436ad8e 100644
--- a/release/scripts/templates_py/image_processing.py
+++ b/release/scripts/templates_py/image_processing.py
@@ -20,9 +20,9 @@ input_image.pixels.foreach_get(pixel_data.ravel())
# Do whatever image processing you want using numpy here:
# Example 1: Inverse red green and blue channels.
-pixel_data[:,:,:3] = 1.0 - pixel_data[:,:,:3]
+pixel_data[:, :, :3] = 1.0 - pixel_data[:, :, :3]
# Example 2: Change gamma on the red channel.
-pixel_data[:,:,0] = np.power(pixel_data[:,:,0], 1.5)
+pixel_data[:, :, 0] = np.power(pixel_data[:, :, 0], 1.5)
# Create output image.
if output_image_name in bpy.data.images:
diff --git a/release/scripts/templates_py/operator_mesh_add.py b/release/scripts/templates_py/operator_mesh_add.py
index aa5b9ebf880..3fc7636459b 100644
--- a/release/scripts/templates_py/operator_mesh_add.py
+++ b/release/scripts/templates_py/operator_mesh_add.py
@@ -6,6 +6,7 @@ from bpy.props import (
FloatProperty,
)
+
def add_box(width, height, depth):
"""
This function takes inputs and returns vertex and face arrays.