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
# NORMAL STYLE | |
import bpy | |
selected_objects = bpy.context.selected_objects | |
obNameList = [] | |
for item in selected_objects: | |
obNameList.append(item.name) #append each name into list | |
print(obNameList) |
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
##### PIXEL ART IMPORT ##### | |
''' | |
Import Pixel Art image and turn it into pixel 3D cubes, each colored based on the pixel sample grid | |
''' | |
import bpy | |
D = bpy.data |
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 | |
import random | |
# Get selected objects | |
selected_meshes = bpy.context.selected_objects | |
# Add Materials that respects the Vertex Color for | |
# each selected and active objects | |
for mesh in selected_meshes: |
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
# Based on Example Script "Python In Maya" by Shaun Friedberg. | |
# http://www.pyrokinesis.co.nz | |
import bpy | |
import random | |
def completeShuffle(listToShuffle): | |
''' | |
''' |
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 | |
import random | |
# Define a function to randomize scale | |
def randomizeScale (minScale, maxScale): | |
selected_objects = bpy.context.selected_objects |
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 | |
def selectMeshBasedOnDistance(distance, empty): | |
""" | |
A simple script to calculate the distance of all | |
mesh in the scene relative to the selected camera | |
""" | |
# Firstly, deselect all objects in the scene | |
bpy.ops.object.select_all(action='DESELECT') |
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 | |
''' | |
Arrange selected objects in specified grid space | |
''' | |
def arrangeIn2DGrid(width=10, height=10, spread=2): | |
# Get List of Selected Objects | |
myObjects = bpy.context.selected_objects |
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
''' | |
NOTE: The Script only works on surface with Quads Faces ONLY | |
''' | |
import bpy | |
from random import * | |
# Get selected objects | |
selected_objects = bpy.context.selected_objects |
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
{ | |
"export_version": "0.062", | |
"framed_nodes": { | |
"List Item": "To Get The Height", | |
"List Item.001": "To Get The Height" | |
}, | |
"groups": {}, | |
"nodes": { | |
"Bounding box": { | |
"bl_idname": "SvBBoxNode", |
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
{ | |
"export_version": "0.062", | |
"framed_nodes": { | |
"List Item": "To Get The Height", | |
"List Item.001": "To Get The Height" | |
}, | |
"groups": {}, | |
"nodes": { | |
"Bounding box": { | |
"bl_idname": "SvBBoxNode", |
OlderNewer