This file contains hidden or 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
for cen, med, nor in zip(centrs, medians, normals): | |
X,Y,Z = Vector((1,0,0)), Vector((0,1,0)), Vector((0,0,1)) | |
x,y,z = nor[:] | |
anglf = Y.angle(med) | |
#print('angle',anglf) | |
quota = sqrt( x**2 + y**2 ) | |
if quota > 1e-12: | |
Nx = Vector(( -y/quota, x/quota, 0 )) | |
Ny = Vector(( -x*z/quota,-y*z/quota,quota )) |
This file contains hidden or 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
{ | |
"export_version": "0.054", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Cylinder": { | |
"bl_idname": "CylinderNode", | |
"color": [ | |
0.0, | |
0.5, |
This file contains hidden or 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
# -*- coding: utf8 -*- | |
import urllib | |
import re | |
import sys | |
def wget(url): | |
ufile = urllib.urlopen(url) | |
if ufile.info().gettype() == 'text/html': | |
return ufile.read() |
This file contains hidden or 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 bmesh | |
from sv_bmesh_utils import * | |
#import numpy as np | |
def sv_main(object=[],layout=-1): | |
in_sockets = [ | |
['s', 'object', object], | |
['s', 'layout', layout], | |
] |
This file contains hidden or 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 sv_main(obj_id=[], particle_sys=0): | |
in_sockets = [ | |
['s', 'obj_id', obj_id], | |
['s', 'particle_sys', particle_sys]] | |
out_sockets = [ | |
['v', 'locations', []] | |
] |
This file contains hidden or 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
{ | |
"export_version": "0.055", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Area": { | |
"bl_idname": "AreaNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, |
This file contains hidden or 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
{ | |
"export_version": "0.055", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Bmesh Viewer Draw": { | |
"bl_idname": "BmeshViewerNode", | |
"color": [ | |
1.0, | |
0.30000001192092896, |
This file contains hidden or 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
{ | |
"faces": [ | |
[ | |
0, | |
1, | |
17, | |
16 | |
], | |
[ | |
1, |
This file contains hidden or 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
{ | |
"export_version": "0.055", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Script Generator": { | |
"bl_idname": "SvScriptNode", | |
"color": [ | |
0.0, | |
0.800000011920929, |
This file contains hidden or 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
{ | |
"export_version": "0.055", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Float Series": { | |
"bl_idname": "SvGenFloatRange", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, |