This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>---</title> | |
<style> | |
body { | |
font: 100% Verdana, Arial; | |
margin: 0; | |
padding: 0; | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
bpy.ops.object.mode_set(mode = 'OBJECT') | |
obj = bpy.context.active_object | |
#deselect_all | |
for f in bpy.context.active_object.data.polygons: | |
f.select = False | |
for p in bpy.context.active_object.data.edges: | |
p.select = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[xenos 0.8] Loading default module | |
[xcore] initializing module | |
[module] astra - application manager | |
Irrlicht Engine version 1.7.1 | |
Professional (Build 7600) | |
WGL_extensions: WGL_ARB_extensions_string WGL_ARB_pixel_format WGL_ATI_pixel_for | |
mat_float WGL_ARB_pixel_format_float WGL_ARB_multisample WGL_EXT_swap_control WG | |
L_EXT_swap_control_tear WGL_ARB_pbuffer WGL_ARB_render_texture WGL_ARB_make_curr | |
ent_read WGL_EXT_extensions_string WGL_ARB_buffer_region WGL_EXT_framebuffer_sRG | |
B WGL_ATI_render_texture_rectangle WGL_EXT_pixel_format_packed_float WGL_I3D_gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def refresh_script(scene): | |
r=context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[0] | |
g=context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[1] | |
b=context.scene.objects['Plane.001'].material_slots['emmisive_light'].material.diffuse_color[2] | |
context.scene.objects['Point'].data.color[0]=context.scene.objects['Point.001'].data.color[0]=r | |
context.scene.objects['Point'].data.color[1]=context.scene.objects['Point.001'].data.color[1]=g | |
context.scene.objects['Point'].data.color[2]=context.scene.objects['Point.001'].data.color[2]=b | |
app.handlers.frame_change_pre.append(refresh_script) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def customCrabStuff(variable): | |
a=0 | |
if variable<=4.305: | |
a=0.863 | |
print("first clause",a) | |
return a | |
if variable>4.305: | |
a=variable - 3.445177947998 | |
print("second clause" ,a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.R1 is in series with D1,C1,Lamp. Lamp,C1,D1 are in parrallel with each other. | |
2.L1 is in parallel with Neon Lamp.SW1 and R1 are in series | |
3.Guaranteed Same Voltage: all components. | |
Guaranteed Same Current: Voltage is not guaranteed to be the same, so current is not guaranteed to be the same accross all components. | |
4. Yes, I would expect the potential stored in the battery to be decimated as the voltage does work. This explains why batteries become useless if they are not recharged | |
5.9V*3A=27Watts dissipated. 3ohms resistance. 9V=3A*_Ohms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
const float PI = 3.1415926535897932384626433832795; | |
varying vec2 surfacePosition; | |
uniform float time; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> bpy.context.scene.objects['Point'].data.color | |
Color((1.0, 0.0, 1.0)) | |
>>> bpy.data.materials['Thrust_color'].diffuse_color | |
Color((0.800000011920929, 0.05700000002980232, 0.0)) | |
>>> bpy.context.scene.objects['Point'].data.color=bpy.data.materials['Thrust_color'].diffuse_color | |
>>> bpy.context.scene.objects['Point'].data.color | |
Color((1.0, 0.05700000002980232, 1.0)) |
OlderNewer