instruction stringlengths 52 109 | output stringlengths 260 3.44k |
|---|---|
Set up Gothic Manor 02 HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/gothic_manor_02/gothic_manor_02_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/gothic_manor_02/gothic_m... |
Apply the Wood Peeling Paint Weathered texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Wood Peeling Paint Weathered texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/wood_peeling_paint_weathered"
# Create material
mat = bpy.data.materials.new(name="Wall_wood_peeling_paint_weathered")
mat.use_nodes = True
... |
Search for 'barrel' models in local Poly Haven library | import os
ph_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven"
results = [d for d in os.listdir(ph_path) if "barrel" in d.lower()]
print(f"Found {len(results)} matches for 'barrel':")
for r in results:
print(f" {r}")
|
Apply the Quarry Wall texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Quarry Wall texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/quarry_wall"
# Create material
mat = bpy.data.materials.new(name="Stone_quarry_wall")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node_tree.... |
Build a professional cafe terrace with real Poly Haven models and HDRI lighting | import bpy
import math
import os
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Set render engine
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.samples = 128
# Create floor
bpy.ops.mesh.primitive_plane_add(size=10, location=(0, 0, 0))
floor = ... |
Apply the Brown Planks 03 texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Brown Planks 03 texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/brown_planks_03"
# Create material
mat = bpy.data.materials.new(name="Wood_brown_planks_03")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat... |
Create a garden path: Create path with primitive planes, add rocking chair from Poly Haven | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: Rockingchair_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/Rockingchair_01/R... |
Set up Ballroom HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/ballroom/ballroom_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/ballroom/ballroom.blend"
world = bpy.... |
Load the Island Tree 03 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Island Tree 03 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/island_tree_03/island_tree_03.blend"
with bpy.data.libraries.l... |
Load the Russian Food Cans 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Russian Food Cans 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/russian_food_cans_01/russian_food_cans_01.blend"
with bp... |
Verify the current scene has all objects properly loaded and positioned | import bpy
print("=== Scene Verification ===")
print(f"Objects: {len(bpy.data.objects)}")
print(f"Materials: {len(bpy.data.materials)}")
print(f"Images: {len(bpy.data.images)}")
issues = []
for obj in bpy.data.objects:
if obj.type == 'MESH':
if not obj.data.materials:
issues.append(f"{obj.name... |
Load the Shrub 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Shrub 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/shrub_01/shrub_01.blend"
with bpy.data.libraries.load(blend_path, li... |
Load Marble Bust 01 from local Poly Haven and place it in the back-right corner, rotated 90 degrees | import bpy
import math
# Load Marble Bust 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/marble_bust_01/marble_bust_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.o... |
Set up Provence Studio HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/provence_studio/provence_studio_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/provence_studio/provence... |
Set up Gamrig HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/gamrig/gamrig_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/gamrig/gamrig.blend"
world = bpy.context.... |
Load the Modular Airduct Circular 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Modular Airduct Circular 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/modular_airduct_circular_01/modular_airduct_circu... |
Load the Barrel Stove model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Barrel Stove from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/barrel_stove/barrel_stove.blend"
with bpy.data.libraries.load(bl... |
Load Potted Plant 01 from local Poly Haven and place it in the front, rotated 45 degrees | import bpy
import math
# Load Potted Plant 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/potted_plant_01/potted_plant_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_fro... |
Load the Coast Rocks 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Coast Rocks 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/coast_rocks_01/coast_rocks_01.blend"
with bpy.data.libraries.l... |
Load Metal Stool 02 from local Poly Haven and place it at the back, rotated 180 degrees | import bpy
import math
# Load Metal Stool 02 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/metal_stool_02/metal_stool_02.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.o... |
Load Dining Chair 02 from local Poly Haven and place it in the back-right corner, rotated 45 degrees | import bpy
import math
# Load Dining Chair 02 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/dining_chair_02/dining_chair_02.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_fro... |
Load Coffee Table Round 01 from local Poly Haven and place it on the left side, rotated 90 degrees | import bpy
import math
# Load Coffee Table Round 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/coffee_table_round_01/coffee_table_round_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.... |
Load the Korean Fire Extinguisher 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Korean Fire Extinguisher 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/korean_fire_extinguisher_01/korean_fire_extinguis... |
Load the Baseball Bat model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Baseball Bat from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/baseball_bat/baseball_bat.blend"
with bpy.data.libraries.load(bl... |
Apply the Painted Metal Shutter texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Painted Metal Shutter texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/painted_metal_shutter"
# Create material
mat = bpy.data.materials.new(name="Metal_painted_metal_shutter")
mat.use_nodes = True
nodes = mat.node_tre... |
Apply the Dark Wood texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Dark Wood texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/dark_wood"
# Create material
mat = bpy.data.materials.new(name="Wood_dark_wood")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node_tree.links
... |
Verify the current scene has all objects properly loaded and positioned | import bpy
print("=== Scene Verification ===")
print(f"Objects: {len(bpy.data.objects)}")
print(f"Materials: {len(bpy.data.materials)}")
print(f"Images: {len(bpy.data.images)}")
issues = []
for obj in bpy.data.objects:
if obj.type == 'MESH':
if not obj.data.materials:
issues.append(f"{obj.name... |
Load Brass Vase 01 from local Poly Haven and place it at the back, rotated -90 degrees | import bpy
import math
# Load Brass Vase 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/brass_vase_01/brass_vase_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.obje... |
Load Fern 02 from local Poly Haven and place it in the front, rotated 45 degrees | import bpy
import math
# Load Fern 02 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/fern_02/fern_02.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.objects
for obj in da... |
Build a professional outdoor garden with real Poly Haven models and HDRI lighting | import bpy
import math
import os
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Set render engine
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.samples = 128
# Create floor
bpy.ops.mesh.primitive_plane_add(size=10, location=(0, 0, 0))
floor = ... |
Apply the Brick Wall 006 texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Brick Wall 006 texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/brick_wall_006"
# Create material
mat = bpy.data.materials.new(name="Wall_brick_wall_006")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.no... |
Load the Plastic Thermos model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Plastic Thermos from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/plastic_thermos/plastic_thermos.blend"
with bpy.data.librarie... |
Verify the current scene has all objects properly loaded and positioned | import bpy
print("=== Scene Verification ===")
print(f"Objects: {len(bpy.data.objects)}")
print(f"Materials: {len(bpy.data.materials)}")
print(f"Images: {len(bpy.data.images)}")
issues = []
for obj in bpy.data.objects:
if obj.type == 'MESH':
if not obj.data.materials:
issues.append(f"{obj.name... |
Load the Fir Tree 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Fir Tree 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/fir_tree_01/fir_tree_01.blend"
with bpy.data.libraries.load(blend... |
Search for 'chair' models in local Poly Haven library | import os
ph_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven"
results = [d for d in os.listdir(ph_path) if "chair" in d.lower()]
print(f"Found {len(results)} matches for 'chair':")
for r in results:
print(f" {r}")
|
Set up En Suite HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/en_suite/en_suite_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/en_suite/en_suite.blend"
world = bpy.... |
Create a display table: Load table from Poly Haven, add primitive sphere vases on top | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: CoffeeTable_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/CoffeeTable_01/Cof... |
Set up Country Club HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/country_club/country_club_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/country_club/country_club.blen... |
Create a display table: Load table from Poly Haven, add primitive sphere vases on top | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: CoffeeTable_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/CoffeeTable_01/Cof... |
Create a wall shelf with books: Create a wall behind with primitive cubes, load shelf from Poly Haven | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: WoodenShelf_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/WoodenShelf_01/Woo... |
Load the Wooden Stool 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Wooden Stool 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/wooden_stool_01/wooden_stool_01.blend"
with bpy.data.librarie... |
Load the Large Iron Gate model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Large Iron Gate from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/large_iron_gate/large_iron_gate.blend"
with bpy.data.librarie... |
Apply the Patterned Brick Wall 03 texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Patterned Brick Wall 03 texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/patterned_brick_wall_03"
# Create material
mat = bpy.data.materials.new(name="Wall_patterned_brick_wall_03")
mat.use_nodes = True
nodes = mat.nod... |
Load the Ceramic Vase 03 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Ceramic Vase 03 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/ceramic_vase_03/ceramic_vase_03.blend"
with bpy.data.librarie... |
Set up Monochrome Studio 02 HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/monochrome_studio_02/monochrome_studio_02_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/monochrome_stu... |
Apply the Rough Block Wall texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Rough Block Wall texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/rough_block_wall"
# Create material
mat = bpy.data.materials.new(name="Wall_rough_block_wall")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = ... |
Apply the Concrete Rock Path texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Concrete Rock Path texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/concrete_rock_path"
# Create material
mat = bpy.data.materials.new(name="Stone_concrete_rock_path")
mat.use_nodes = True
nodes = mat.node_tree.nodes
l... |
Load the Mantel Clock 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Mantel Clock 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/mantel_clock_01/mantel_clock_01.blend"
with bpy.data.librarie... |
Load the Potted Plant 04 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Potted Plant 04 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/potted_plant_04/potted_plant_04.blend"
with bpy.data.librarie... |
Load the Flower Ursinia model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Flower Ursinia from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/flower_ursinia/flower_ursinia.blend"
with bpy.data.libraries.l... |
Set up Garden Nook HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/garden_nook/garden_nook_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/garden_nook/garden_nook.blend"
... |
Set up Lenong 2 HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/lenong_2/lenong_2_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/lenong_2/lenong_2.blend"
world = bpy.... |
Load the Grass Bermuda 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Grass Bermuda 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/grass_bermuda_01/grass_bermuda_01.blend"
with bpy.data.libra... |
Create a garden path: Create path with primitive planes, add rocking chair from Poly Haven | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: Rockingchair_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/Rockingchair_01/R... |
Load the CheeseBox_01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load CheeseBox_01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/CheeseBox_01/CheeseBox_01.blend"
with bpy.data.libraries.load(bl... |
Create a workshop corner: Load workbench, create primitive tool shapes on top | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: WorkBench_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/WorkBench_01/WorkBen... |
Load Folding Wooden Stool from local Poly Haven and place it in the front, rotated -45 degrees | import bpy
import math
# Load Folding Wooden Stool from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/folding_wooden_stool/folding_wooden_stool.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.obj... |
Apply the Flower Scattered Asphalt texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Flower Scattered Asphalt texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/flower_scattered_asphalt"
# Create material
mat = bpy.data.materials.new(name="Floor_flower_scattered_asphalt")
mat.use_nodes = True
nodes = mat... |
Apply the Asphalt Floor texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Asphalt Floor texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/asphalt_floor"
# Create material
mat = bpy.data.materials.new(name="Floor_asphalt_floor")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node... |
Set up Greenwich Park 02 HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/greenwich_park_02/greenwich_park_02_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/greenwich_park_02/gr... |
Create a wall shelf with books: Create a wall behind with primitive cubes, load shelf from Poly Haven | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: WoodenShelf_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/WoodenShelf_01/Woo... |
Set up Small Harbour Sunset HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/small_harbour_sunset/small_harbour_sunset_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/small_harbour_... |
Apply the Brown Planks 05 texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Brown Planks 05 texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/brown_planks_05"
# Create material
mat = bpy.data.materials.new(name="Wood_brown_planks_05")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat... |
List available tools models in the local Poly Haven library | import os
import json
ph_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven"
results = []
for d in sorted(os.listdir(ph_path)):
info_path = os.path.join(ph_path, d, "info.json")
if os.path.exists(info_path):
with open(info_path, "r") as f:
info = json... |
Set up Snowy Forest HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/snowy_forest/snowy_forest_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/snowy_forest/snowy_forest.blen... |
Apply the Cracked Concrete texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Cracked Concrete texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/cracked_concrete"
# Create material
mat = bpy.data.materials.new(name="Floor_cracked_concrete")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links =... |
Design a realistic cozy bedroom composition with Poly Haven furniture, plants, and studio lighting | import bpy
import math
import os
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Set render engine
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.samples = 128
# Create floor
bpy.ops.mesh.primitive_plane_add(size=10, location=(0, 0, 0))
floor = ... |
Load Rock 07 from local Poly Haven and place it on the left side, rotated 0 degrees | import bpy
import math
# Load Rock 07 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/rock_07/rock_07.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.objects
for obj in da... |
Load the Dutch Ship Large 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Dutch Ship Large 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/dutch_ship_large_01/dutch_ship_large_01.blend"
with bpy.d... |
Load Coffee Cart 01 from local Poly Haven and place it in the back-left corner, rotated 0 degrees | import bpy
import math
# Load Coffee Cart 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/CoffeeCart_01/CoffeeCart_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.obj... |
Load Shrub 04 from local Poly Haven and place it at the back, rotated 180 degrees | import bpy
import math
# Load Shrub 04 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/shrub_04/shrub_04.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.objects
for obj in... |
Create a display table: Load table from Poly Haven, add primitive sphere vases on top | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: CoffeeTable_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/CoffeeTable_01/Cof... |
Load Painted Wooden Shelves from local Poly Haven and place it in the back-right corner, rotated 0 degrees | import bpy
import math
# Load Painted Wooden Shelves from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/painted_wooden_shelves/painted_wooden_shelves.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_... |
Design a realistic living room composition with Poly Haven furniture, plants, and studio lighting | import bpy
import math
import os
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Set render engine
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.samples = 128
# Create floor
bpy.ops.mesh.primitive_plane_add(size=10, location=(0, 0, 0))
floor = ... |
Set up Zwartkops Start Sunset HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/zwartkops_start_sunset/zwartkops_start_sunset_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/zwartkops_... |
Apply the Rock Wall 02 texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Rock Wall 02 texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/rock_wall_02"
# Create material
mat = bpy.data.materials.new(name="Stone_rock_wall_02")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node_tr... |
Set up Kloppenheim 01 HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/kloppenheim_01/kloppenheim_01_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/kloppenheim_01/kloppenheim... |
Load the Steel Frame Shelves 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Steel Frame Shelves 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/steel_frame_shelves_01/steel_frame_shelves_01.blend"
w... |
Apply the Brick Wall 08 texture from local Poly Haven to the floor plane | import bpy
import os
# Apply Brick Wall 08 texture from local library
tex_dir = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/brick_wall_08"
# Create material
mat = bpy.data.materials.new(name="Stone_brick_wall_08")
mat.use_nodes = True
nodes = mat.node_tree.nodes
links = mat.node... |
Load Decorative Book Set 01 from local Poly Haven and place it at the center, rotated 90 degrees | import bpy
import math
# Load Decorative Book Set 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/decorative_book_set_01/decorative_book_set_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_... |
Load Wooden Chair 01 from local Poly Haven and place it on the left side, rotated 45 degrees | import bpy
import math
# Load Wooden Chair 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/WoodenChair_01/WoodenChair_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.... |
Load the Ceramic Vase 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Ceramic Vase 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/ceramic_vase_01/ceramic_vase_01.blend"
with bpy.data.librarie... |
Load Painted Wooden Sofa from local Poly Haven and place it in the back-left corner, rotated -90 degrees | import bpy
import math
# Load Painted Wooden Sofa from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/painted_wooden_sofa/painted_wooden_sofa.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.object... |
Set up Qwantani Noon (Pure Sky) HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/qwantani_noon_puresky/qwantani_noon_puresky_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/qwantani_noo... |
List available vases models in the local Poly Haven library | import os
import json
ph_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven"
results = []
for d in sorted(os.listdir(ph_path)):
info_path = os.path.join(ph_path, d, "info.json")
if os.path.exists(info_path):
with open(info_path, "r") as f:
info = json... |
Create a cozy bedroom scene using Poly Haven assets from the local library | import bpy
import math
import os
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Set render engine
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.samples = 128
# Create floor
bpy.ops.mesh.primitive_plane_add(size=10, location=(0, 0, 0))
floor = ... |
Load the Multi Cleaner 5 Litre model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Multi Cleaner 5 Litre from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/multi_cleaner_5_litre/multi_cleaner_5_litre.blend"
with... |
Create a workshop corner: Load workbench, create primitive tool shapes on top | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: WorkBench_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/WorkBench_01/WorkBen... |
Verify the current scene has all objects properly loaded and positioned | import bpy
print("=== Scene Verification ===")
print(f"Objects: {len(bpy.data.objects)}")
print(f"Materials: {len(bpy.data.materials)}")
print(f"Images: {len(bpy.data.images)}")
issues = []
for obj in bpy.data.objects:
if obj.type == 'MESH':
if not obj.data.materials:
issues.append(f"{obj.name... |
Load the Namaqualand Boulder 04 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Namaqualand Boulder 04 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/namaqualand_boulder_04/namaqualand_boulder_04.blend"
w... |
Set up a art gallery using local Poly Haven assets with proper materials and camera | import bpy
import math
import os
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Set render engine
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.samples = 128
# Create floor
bpy.ops.mesh.primitive_plane_add(size=10, location=(0, 0, 0))
floor = ... |
Load the Rusted Wheel Rim 02 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Rusted Wheel Rim 02 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/rusted_wheel_rim_02/rusted_wheel_rim_02.blend"
with bpy.d... |
Set up Old Room HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/old_room/old_room_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/old_room/old_room.blend"
world = bpy.... |
Create a display table: Load table from Poly Haven, add primitive sphere vases on top | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: CoffeeTable_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/CoffeeTable_01/Cof... |
Load Brass Pot 01 from local Poly Haven and place it in the back-right corner, rotated 135 degrees | import bpy
import math
# Load Brass Pot 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/brass_pot_01/brass_pot_01.blend"
with bpy.data.libraries.load(blend_path, link=False) as (data_from, data_to):
data_to.objects = data_from.objects... |
Set up a cozy bedroom using local Poly Haven assets with proper materials and camera | import bpy
import math
import os
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Set render engine
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.cycles.samples = 128
# Create floor
bpy.ops.mesh.primitive_plane_add(size=10, location=(0, 0, 0))
floor = ... |
Load the Cannon 01 model from the local Poly Haven library into Blender | import bpy
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
# Load Cannon 01 from local Poly Haven library
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/cannon_01/cannon_01.blend"
with bpy.data.libraries.load(blend_path,... |
Create a display table: Load table from Poly Haven, add primitive sphere vases on top | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: CoffeeTable_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/CoffeeTable_01/Cof... |
Create a garden path: Create path with primitive planes, add rocking chair from Poly Haven | import bpy
import math
# Clear scene
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete(use_global=False)
bpy.context.scene.render.engine = 'CYCLES'
# Load Poly Haven asset: Rockingchair_01
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/Rockingchair_01/R... |
Set up Countrytrax Midday HDRI lighting from local Poly Haven library | import bpy
import os
# Set up HDRI from local Poly Haven library
hdr_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/countrytrax_midday/countrytrax_midday_1k.hdr"
blend_path = "C:/Users/limbp/Documents/AI_FIRST/tools/blender-4.2.10-windows-x64/data/polyhaven/countrytrax_midday... |
End of preview. Expand in Data Studio
BlenderLLM v2 - Poly Haven Training Dataset
Fine-tuning dataset for BlenderLLM to use local Poly Haven library (2,194 assets).
Purpose
BlenderLLM v1 only generates primitive-based scripts. This dataset teaches it to:
- Load models from local .blend files (426 models)
- Apply HDRIs for realistic lighting (963 HDRIs)
- Apply textures with PBR materials (805 textures)
- Compose scenes combining real assets + primitives
- Search/list available assets by category
- Handle errors (missing assets, overlaps, verification)
Dataset Structure
| Category | Samples | Description |
|---|---|---|
| Load single model | 100 | bpy.data.libraries.load() from .blend |
| Load + position | 100 | Load + location/rotation |
| HDRI lighting | 80 | World environment from .hdr |
| Apply textures | 80 | Diffuse + Normal maps |
| Scene compositions | 32 | Multi-asset + HDRI + camera |
| Search assets | 20 | os.listdir + info.json |
| Error handling | 33 | Missing assets, verification |
| Combined (primitives + assets) | 48 | Hybrid scenes |
| Total | 493 |
Base Model
FreedomIntelligence/BlenderLLM (Qwen2.5-Coder-7B fine-tuned on BlendNet 12.1K samples)
Training
See for the complete Unsloth LoRA training notebook.
Local Poly Haven Library
Assets at:
- Each asset: + +
- Models loaded with:
- HDRIs loaded with:
- Downloads last month
- 35