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 the script properties | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
// Retrieve the value for a specific property | |
const SECRET_KEY = scriptProperties.getProperty('SECRET_KEY'); | |
const assistantID = scriptProperties.getProperty('assistantID'); | |
//const inputPrompt = "<6>악마 <6>점프뒷차기!"; | |
function StarcraftTranslator(inputPrompt) { |
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
# I put a lot of effort into making this, so if you'd like to show your appreciation | |
# you can donate to me through PayPal at the link below: https://paypal.me/mintyfresh <3 | |
bl_info = { | |
"name": "GPencil Cursor", | |
"author": "psyda", | |
"version": (1, 0), | |
"blender": (2, 93, 0), | |
"location": "View3D > AddonMenu > Tool > GPencil Cursor", | |
"description": "Custom cursor in GPencil Draw mode. For the blind, average-sized monitor users, and those with cursor commitment issues!", |
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 | |
for img in bpy.data.images: | |
img.filepath = img.filepath.replace('.png', '.jpg') | |
img.name = img.name.replace('.png', '.jpg') | |
img.filepath = img.filepath.replace('4k', 'Renamemetopackname') #Rename that to whatever you renamed the 4k folder to. ie. CyberDistrict | |
img.name = img.name.replace('4k', 'Renamemetopackname') #Rename that to whatever you renamed the 4k folder to. ie. CyberDistrict | |
img.reload() | |
print("Done! Save your blend file!") |
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 | |
for img in bpy.data.images: | |
img.filepath = img.filepath.replace('.png', '.jpg') | |
img.name = img.name.replace('.png', '.jpg') | |
img.reload() | |
print("Done! Save your blend file!") | |
#When it's finished make sure everything looks correct and save the blend file with a new name ie > Save-As "Packname_jpg.blend" |
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
# Open your KB3D Pack. Make sure the textures are loaded and everything works as intended. This script assumes the Scene is named KB3D_"TitleCasePackName"-Native. It should be that by default. | |
# Create a new folder in your Asset Library Folder for Blender. (Edit>Preferences>FilePaths>AssetLibraries). I recommend a setup like this | |
# (D:/BlenderAssetLibraries/KB3D/CyberDistricts/Cyberdistricts.blend) | |
# Where "CyberDistricts" would be the AssetLibrary. | |
# Open the script in Blender by going to the Text Editor and clicking "Open" to locate the file, or paste it from the Gist. | |
# Run the script by clicking the "Run Script" button in the Text Editor or pressing Alt+P. | |
# The script will create new collections for each type of asset in your scene and move the assets into these collections. It will also generate a unique ID for the asset pack and each asset in the pack. | |
# The script will then update the asset catalog file to include the new asset pack and each asset in the pack. | |
# Once the script is finished, you can s |