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 LIST OF NAMES | |
#import bpy | |
#for addon in bpy.context.preferences.addons: | |
# print(addon.module) | |
#PRINT LIST OF NAMES AS ARRAY |
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
# Comment | |
""" Comment """ | |
""" | |
Block comment | |
""" |
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
# LIST NODE INPUTS/OUTPUTS | |
import bpy | |
selNode = bpy.data.materials["Material"].node_tree.nodes["Principled BSDF"] | |
for i, o in enumerate(selNode.inputs): | |
print(i, o.name) | |
for i, o in enumerate(selNode.outputs): |
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 | |
from math import sqrt | |
phi = (1 + sqrt(5)) / 2 | |
# phi = 5 ** .5 * .5 + .5 | |
# ASCENDING | |
e1 = [round((x * phi),3) for x in range(1,17)] | |
print(f"\nAscending = {e1}") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# If you want to use modifier keys symbols in your text labels, use these: | |
# Control ⌃ | |
# Option/Alt ⌥ | |
# Shift ⇧ | |
# Command ⌘ |
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
// Xcode - Text Formatting | |
// https://daddycoding.com/2019/12/26/swiftui-text/ | |
Text("Sample Text") | |
.font(.system( | |
size: 15, | |
weight: .semibold, | |
design: .default // .default, .serif, .rounded, .monospaced | |
)) |
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
:root { | |
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |
--ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); | |
--ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); | |
--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); | |
--ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335); | |
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
--ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); | |
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1); |
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
// Get screen width and subtract Safe Area margins | |
var containerWidth:CGFloat = UIScreen.main.bounds.width - 32.0 | |
// Set frame width of each column using (containerWidth * percentage) | |
HStack (spacing:0) { | |
HStack { | |
Text("Column 25% Width") | |
} | |
.frame(width: containerWidth * 0.25) | |
HStack { |
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
var body: some View { | |
// Add this right after declaring body view: | |
UITableView.appearance().separatorColor = UIColor(red:(128/255), green:(128/255), blue:(128/255), alpha: 1) | |
return NavigationView{ | |
List {} | |
.navigationBarTitle("", displayMode: .inline) | |
.navigationBarHidden(true) | |
} |