Skip to content

Instantly share code, notes, and snippets.

@RH2
Created November 4, 2012 09:02
Show Gist options
  • Save RH2/4010993 to your computer and use it in GitHub Desktop.
Save RH2/4010993 to your computer and use it in GitHub Desktop.
import bpy
import math
def refresh_script(scene):
r
b
g
r=bpy.context.scene.objects['Point'].data.color[0]
g=bpy.context.scene.objects['Point'].data.color[1]
b=bpy.context.scene.objects['Point'].data.color[2]
ra=bpy.context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[0]
ba=bpy.context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[1]
ga=bpy.context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[2]
bpy.context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[0]=ra
bpy.context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[1]=ba
bpy.context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[2]=ga
bpy.app.handlers.frame_change_pre.append(refresh_script)
@RH2
Copy link
Author

RH2 commented Nov 4, 2012

File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 4, in refresh_scri
pt
UnboundLocalError: local variable 'r' referenced before assignment
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'p' is not defined
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'pr' is not defined
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'pri' is not defined
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'prin' is not defined
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'print9' is not defined
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'print90' is not defined
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1
print90"
^
SyntaxError: EOL while scanning string literal
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'print90' is not defined
Traceback (most recent call last):
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1, in
NameError: name 'print9' is not defined
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1
print(
^
SyntaxError: unexpected EOF while parsing

File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1
print(")
^
SyntaxError: EOL while scanning string literal

h
he
hel
hell
hello
hello
hello w
hello wo
hello wor
hello work
hello wor
hello worl
hello world
hello world
hello world t
hello world th
hello world thi
hello world this
hello world this
hello world this i
hello world this is
hello world this is
hello world this is a
hello world this is aw
hello world this is awe
hello world this is awes
hello world this is aweso
hello world this is awesom
hello world this is awesome
hello world this is awesome
hello world this is awesome s
hello world this is awesome sa
hello world this is awesome sau
hello world this is awesome saus
hello world this is awesome sau
hello world this is awesome sauc
hello world this is awesome sauce
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1
print("hello world this is awesome sauce
^
SyntaxError: EOL while scanning string literal
File "C:\Users\aceRH2\Desktop\ukto\characterTwo_rig2_lounging.blend\Text", line 1
print("hello world this is awesome sauce
^
SyntaxError: EOL while scanning string literal
hello world this is awesome sauce
hello world this is awesome sauce
hello world this is awesome sauce a
hello world this is awesome sauce an
hello world this is awesome sauce and
hello world this is awesome sauce and
hello world this is awesome sauce and I
hello world this is awesome sauce and I
hello world this is awesome sauce and I w
hello world this is awesome sauce and I wa
hello world this is awesome sauce and I wao
hello world this is awesome sauce and I waou
hello world this is awesome sauce and I waoul
hello world this is awesome sauce and I waould
hello world this is awesome sauce and I waould
hello world this is awesome sauce and I waould
hello world this is awesome sauce and I waoul
hello world this is awesome sauce and I waou
hello world this is awesome sauce and I wao
hello world this is awesome sauce and I wa
hello world this is awesome sauce and I w
hello world this is awesome sauce and I wo
hello world this is awesome sauce and I wou
hello world this is awesome sauce and I woul
hello world this is awesome sauce and I would
hello world this is awesome sauce and I would
hello world this is awesome sauce and I would l
hello world this is awesome sauce and I would li
hello world this is awesome sauce and I would lik
hello world this is awesome sauce and I would like
hello world this is awesome sauce and I would like
hello world this is awesome sauce and I would like t
hello world this is awesome sauce and I would like to
hello world this is awesome sauce and I would like to
hello world this is awesome sauce and I would like to s
hello world this is awesome sauce and I would like to sa
hello world this is awesome sauce and I would like to say
hello world this is awesome sauce and I would like to say
hello world this is awesome sauce and I would like to say t
hello world this is awesome sauce and I would like to say th
hello world this is awesome sauce and I would like to say tha
hello world this is awesome sauce and I would like to say that
hello world this is awesome sauce and I would like to say that
hello world this is awesome sauce and I would like to say that I
hello world this is awesome sauce and I would like to say that I
hello world this is awesome sauce and I would like to say that I a
hello world this is awesome sauce and I would like to say that I am
hello world this is awesome sauce and I would like to say that I am
hello world this is awesome sauce and I would like to say that I am v
hello world this is awesome sauce and I would like to say that I am ve
hello world this is awesome sauce and I would like to say that I am ver
hello world this is awesome sauce and I would like to say that I am very
hello world this is awesome sauce and I would like to say that I am very
hello world this is awesome sauce and I would like to say that I am very h
hello world this is awesome sauce and I would like to say that I am very ha
hello world this is awesome sauce and I would like to say that I am very hap
hello world this is awesome sauce and I would like to say that I am very happ
hello world this is awesome sauce and I would like to say that I am very happy
hello world this is awesome sauce and I would like to say that I am very happy
hello world this is awesome sauce and I would like to say that I am very happy w
hello world this is awesome sauce and I would like to say that I am very happy wi
hello world this is awesome sauce and I would like to say that I am very happy wit
hello world this is awesome sauce and I would like to say that I am very happy with
hello world this is awesome sauce and I would like to say that I am very happy with
hello world this is awesome sauce and I would like to say that I am very happy with h
hello world this is awesome sauce and I would like to say that I am very happy with ho
hello world this is awesome sauce and I would like to say that I am very happy with hou
hello world this is awesome sauce and I would like to say that I am very happy with ho
hello world this is awesome sauce and I would like to say that I am very happy with how
hello world this is awesome sauce and I would like to say that I am very happy with how
hello world this is awesome sauce and I would like to say that I am very happy with how t
hello world this is awesome sauce and I would like to say that I am very happy with how th
hello world this is awesome sauce and I would like to say that I am very happy with how thi
hello world this is awesome sauce and I would like to say that I am very happy with how this
hello world this is awesome sauce and I would like to say that I am very happy with how this
hello world this is awesome sauce and I would like to say that I am very happy with how this i
hello world this is awesome sauce and I would like to say that I am very happy with how this is
hello world this is awesome sauce and I would like to say that I am very happy with how this is
hello world this is awesome sauce and I would like to say that I am very happy with how this is t
hello world this is awesome sauce and I would like to say that I am very happy with how this is tu
hello world this is awesome sauce and I would like to say that I am very happy with how this is tur
hello world this is awesome sauce and I would like to say that I am very happy with how this is turn

hello world this is awesome sauce and I would like to say that I am very happy with how this is turn
i
hello world this is awesome sauce and I would like to say that I am very happy with how this is turn
in
hello world this is awesome sauce and I would like to say that I am very happy with how this is turn
ing
hello world this is awesome sauce and I would like to say that I am very happy with how this is turn
ing
hello world this is awesome sauce and I would like to say that I am very happy with how this is turn
ing o
hello world this is awesome sauce and I would like to say that I am very happy with how this is turn
ing ou
hello world this is awesome sauce and I would like to say that I am very happy with how this is turn
ing out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment