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 bpy | |
| def pivotpointchange(pivotpoint): | |
| for area in bpy.context.screen.areas: | |
| if area.type == 'VIEW_3D': | |
| area.spaces[0].pivot_point = pivotpoint | |
| def currentpivotpoint(): | |
| for area in bpy.context.screen.areas: | |
| if area.type == 'VIEW_3D': |
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 bpy | |
| def pivotpointchange(pivotpoint): | |
| for area in bpy.context.screen.areas: | |
| if area.type == 'VIEW_3D': | |
| area.spaces[0].pivot_point = pivotpoint | |
| def currentpivotpoint(): | |
| for area in bpy.context.screen.areas: | |
| if area.type == 'VIEW_3D': | |
| return area.spaces[0].pivot_point |
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
| // Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' | |
| Shader "Unlit/charshader_babel" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _sw("string length in line",int) = 30 | |
| _line("line",int) = 20 |
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
| Shader "Unlit/charshader" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } |
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 bpy | |
| def axislist(axisbool): | |
| r = [] | |
| for i in range(len(axisbool)): | |
| l = [False,False,False] | |
| if axisbool[i]: | |
| l[i] = True | |
| r.append(l) |
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 bpy | |
| import bmesh | |
| bpy.ops.object.mode_set(mode='OBJECT') | |
| obj = bpy.context.active_object | |
| bpy.ops.object.mode_set(mode='EDIT') | |
| mesh = bmesh.from_edit_mesh(obj.data) | |
| bpy.ops.mesh.select_all(action="DESELECT") | |
| for v in mesh.verts: |
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
| Shader "dynamicraymarching" | |
| { | |
| Properties | |
| { | |
| _Color("Color", Color) = (1,1,1,1) | |
| _MainTex("Albedo", 2D) = "white" {} | |
| _Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 | |
| _Glossiness("Smoothness", Range(0.0, 1.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
| using UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| public class BroochEditor : EditorWindow | |
| { | |
| private class PathTool |
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
| using UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| public class BroochEditor : EditorWindow | |
| { | |
| private class PathTool | |
| { |
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
| using UnityEngine; | |
| using System; | |
| using System.Collections.Generic; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| public class BroochEditor : EditorWindow | |
| { | |
| private class PathTool | |
| { |