def getPattern(self, pattern, values):
        """returns a pattern for this instance. if no pattern is defined
            returns a default-pattern.
            """
        if pattern == None:
            if self.BlendPattern == None:
                pattern = self.getBasePattern(values)
            else:
                pattern = self.BlendPattern
        return pattern
returns a pattern for this instance. if no pattern is defined
            returns a default-pattern.
            
recipes/Python/111969_Blender/recipe-111969.py