Skip to content

Instantly share code, notes, and snippets.

@RNavega
RNavega / Random Theme Operator.py
Created November 13, 2018 15:20
Go to the Text Editor in Blender, press the plus ("+") button to create a new text object, paste the code below and press "Run Script". Then on the 3D View, press SPACE and type "random theme operator" and ENTER to use it.
import bpy
import blf
import bgl
import random
def drawCallback(self):
blf.size(0, 16, 72)
text = ('Last changed: ' + self.currentPropName) if self.currentPropName else 'Press LEFT or RIGHT to change color, ESC to stop'