-
-
Save zeffii/ea915b4d1385770d0a1b to your computer and use it in GitHub Desktop.
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
{'Float': {'bl_idname': 'FloatNode', | |
'incoming': {}, | |
'location': (-283.6082458496094, 43.65261459350586), | |
'outgoing': {'Float': [['Line', 'Step']]}, | |
'params': {'float_': 0.06999999284744263}}, | |
'Integer': {'bl_idname': 'IntegerNode', | |
'incoming': {}, | |
'location': (-628.5100708007812, 116.91203308105469), | |
'outgoing': {'Integer': [['List Range Int', 'Stop'], ['Line.001', 'N┬║ Vertices']]}, | |
'params': {'int_': 6}}, | |
'Line': {'bl_idname': 'LineNode', | |
'incoming': {'N┬║ Vertices': ['List Split.001', 'Split'], 'Step': ['Float', 'Float']}, | |
'location': (-128.42190551757812, 126.17635345458984), | |
'outgoing': {'Edges': [['Viewer Draw2', 'edg_pol']], | |
'Vertices': [['Vectors Move', 'vertices']]}, | |
'params': {'orientation': 2, 'step_': -0.020000040531158447}}, | |
'Line.001': {'bl_idname': 'LineNode', | |
'incoming': {'N┬║ Vertices': ['Integer', 'Integer']}, | |
'location': (-127.47893524169922, -32.499996185302734), | |
'outgoing': {'Vertices': [['List Split', 'Data']]}, | |
'params': {'int_': 6, 'orientation': 0, 'step_': 0.1599999964237213}}, | |
'List Range Int': {'bl_idname': 'GenListRangeIntNode', | |
'incoming': {'Stop': ['Integer', 'Integer']}, | |
'location': (-439.69793701171875, 207.42633056640625), | |
'outgoing': {'Range': [['List Split.001', 'Data']]}, | |
'params': {'count_': 6, | |
'current_mode': 'COUNTRANGE', | |
'mode': 2, | |
'start_': 8, | |
'step_': 9}}, | |
'List Split': {'bl_idname': 'SvListSplitNode', | |
'incoming': {'Data': ['Line.001', 'Vertices']}, | |
'location': (42.63195037841797, -64.11638641357422), | |
'outgoing': {'Split': [['Vectors Move', 'vectors']]}, | |
'params': {'level': 1, 'level_unwrap': 1, 'newsock': 0, 'typ': 'v', 'unwrap': 1}}, | |
'List Split.001': {'bl_idname': 'SvListSplitNode', | |
'incoming': {'Data': ['List Range Int', 'Range']}, | |
'location': (-267.67449951171875, 174.85400390625), | |
'outgoing': {'Split': [['Line', 'N┬║ Vertices']]}, | |
'params': {'level': 1, | |
'level_unwrap': 1, | |
'newsock': 0, | |
'typ': 's', | |
'unwrap': 1}}, | |
'Note': {'bl_idname': 'NoteNode', | |
'incoming': {}, | |
'location': (-875.493896484375, 177.3819122314453), | |
'outgoing': {}, | |
'params': {'n_id': '1804309777', 'text': 'Dealga McArdle | zeffii | 2014 Aug'}}, | |
'Script Generator': {'bl_idname': 'SvScriptNode', | |
'incoming': {}, | |
'location': (-550.2219848632812, 4.11798095703125), | |
'outgoing': {}, | |
'params': {'button_names': '', | |
'files_popup': 6, | |
'has_buttons': 0, | |
'script_name': 'petal_sine.py', | |
'script_str': 'from math import sin, cos, radians, pi\n' | |
'from mathutils import Vector, Euler\n' | |
'# creates flower\n' | |
'\n' | |
'def sv_main(n_petals=8, vp_petal=20, ' | |
'profile_radius=1.3, amp=1.0):\n' | |
'\n' | |
' in_sockets = [\n' | |
" ['s', 'Nm Petals', n_petals],\n" | |
" ['s', 'herts per Petal', vp_petal],\n" | |
" ['s', 'Profile Radius', " | |
'profile_radius],\n' | |
" ['s', 'Amp', amp],\n" | |
' ]\n' | |
'\n' | |
' # variables\n' | |
' z_float = 0.0\n' | |
' n_verts = n_petals * vp_petal\n' | |
' section_angle = 360.0 / n_verts\n' | |
' position = (2 * (pi / (n_verts / ' | |
'n_petals)))\n' | |
'\n' | |
' # consumables\n' | |
' Verts = []\n' | |
' Edges = []\n' | |
'\n' | |
' # makes vertex coordinates\n' | |
' for i in range(n_verts):\n' | |
' # difference is a function of the ' | |
'position on the circumference\n' | |
' difference = amp * cos(i * position)\n' | |
' arm = profile_radius + difference\n' | |
' ampline = Vector((arm, 0.0, 0.0))\n' | |
'\n' | |
' rad_angle = radians(section_angle * ' | |
'i)\n' | |
' myEuler = Euler((0.0, 0.0, rad_angle), ' | |
"'XYZ')\n" | |
'\n' | |
' # changes the vector in place, ' | |
'successive calls are accumulative\n' | |
' # we reset at the start of the loop.\n' | |
' ampline.rotate(myEuler)\n' | |
' x_float = ampline.x\n' | |
' y_float = ampline.y\n' | |
' Verts.append((x_float, y_float, ' | |
'z_float))\n' | |
'\n' | |
' # makes edge keys, ensure cyclic\n' | |
' if Verts:\n' | |
' i = 0\n' | |
' Edges.extend([[i, i + 1] for i in ' | |
'range(n_verts - 1)])\n' | |
' Edges.append([i, 0])\n' | |
'\n' | |
' out_sockets = [\n' | |
" ['v', 'Verts', [Verts]],\n" | |
" ['s', 'Edges', [Edges]],\n" | |
' ]\n' | |
'\n' | |
' return in_sockets, out_sockets\n'}}, | |
'Sv 3Dview Props Node': {'bl_idname': 'Sv3DviewPropsNode', | |
'incoming': {}, | |
'location': (-879.6376342773438, 51.52643585205078), | |
'outgoing': {}, | |
'params': {}}, | |
'Sv Stethoscope Node': {'bl_idname': 'SvStethoscopeNode', | |
'incoming': {}, | |
'location': (-847.4013671875, -238.01455688476562), | |
'outgoing': {}, | |
'params': {'n_id': '1796571876', | |
'text_color': (0.7022175788879395, | |
0.7022175788879395, | |
0.7022175788879395)}}, | |
'Vectors Move': {'bl_idname': 'VectorMoveNode', | |
'incoming': {'vectors': ['List Split', 'Split'], | |
'vertices': ['Line', 'Vertices']}, | |
'location': (185.6992950439453, 102.27936553955078), | |
'outgoing': {'vertices': [['Viewer Draw2', 'vertices']]}, | |
'params': {}}, | |
'Viewer Draw2': {'bl_idname': 'ViewerNode2', | |
'incoming': {'edg_pol': ['Line', 'Edges'], | |
'vertices': ['Vectors Move', 'vertices']}, | |
'location': (332.7458801269531, 214.11753845214844), | |
'outgoing': {}, | |
'params': {'activate': 0, | |
'display_edges': 1, | |
'edge_colors': (0.8989997506141663, | |
0.029341921210289, | |
0.06671497970819473), | |
'n_id': '1474589836'}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment