Skip to content
Snippets Groups Projects
Commit 16a6b444 authored by NBurn's avatar NBurn
Browse files

automat/AdjOp - code cleanup

parent efa3c016
Branches
No related tags found
No related merge requests found
...@@ -10,11 +10,10 @@ import bpy ...@@ -10,11 +10,10 @@ import bpy
import os import os
class AdjustableOperatorFromTexture(bpy.types.Operator): class AdjustableOperatorFromTexture(bpy.types.Operator):
"""
"""This operator generates adjustable materials from textures in Cycles. This operator generates adjustable materials from textures in Cycles.
This is a subclass from bpy.types.Operator.
This is a subclass from bpy.types.Operator. """
"""
# Metadata of the operator # Metadata of the operator
...@@ -32,10 +31,10 @@ This is a subclass from bpy.types.Operator. ...@@ -32,10 +31,10 @@ This is a subclass from bpy.types.Operator.
def execute(self, context): def execute(self, context):
"""
"""This is the main runnable method of the operator. This is the main runnable method of the operator.
This creates all the node setup.
This creates all the node setup.""" """
# Create the material # Create the material
...@@ -104,10 +103,11 @@ This creates all the node setup.""" ...@@ -104,10 +103,11 @@ This creates all the node setup."""
return {"FINISHED"} return {"FINISHED"}
def invoke(self, context, event): def invoke(self, context, event):
"""
"""This method opens the file browser. After that, the This method opens the file browser. After that, the
execute(...) method gets ran, creating the node setup. execute(...) method gets ran, creating the node setup.
It also checks that the render engine is Cycles. """ It also checks that the render engine is Cycles.
"""
if bpy.context.scene.render.engine == 'CYCLES': if bpy.context.scene.render.engine == 'CYCLES':
self.filename = "" self.filename = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment