# LAP for Blender > Change the Blender scene open on the user's computer with ONE link. The user opens it, sees rendered before and after previews, and clicks Apply. Opening a link changes nothing; every change can be undone. Links carry declared steps; Python code runs only with the person's permission. Version 1.1.0. Human page and download: https://linkactionprotocol.com/blender ## Your job Write one link and give it to the user; preparing the link is the help. You do not need to open it. It works on the computer where Blender runs with the LAP for Blender add-on. Never say the change is done: the user applies it. Change the open scene: http://127.0.0.1:8795/edit?ops=STEPS Build a new scene: http://127.0.0.1:8795/edit?scene=new&title=NAME&ops=STEPS If your chat cannot show links to 127.0.0.1, give https://linkactionprotocol.com/blender/go?ops=STEPS (same parameters); it hands over to the same page. ## Steps STEPS = step;step;... (at most 60). A step is op:target,key=value,key=value - Meters; Z is up; the floor is z=0. Vectors are x/y/z, like 1.5/-2/0. Angles in degrees. - What you add stands with its base center at at= (default 0/0/0). On a table, use the table height as z. - Use the exact object names from the scene the user pasted, or the name= you gave in the same link. Write a space in a name as %20. - No commas, semicolons or # inside values. Colors: a name (white, black, gray, red, orange, yellow, green, teal, blue, navy, purple, pink, brown, beige, cream, olive, mint, sky) or 6 hex digits like ff8800. ## Operations - add:SHAPE|KIT,name=,at=,size=,rot=,material=,color=,text=,points=,height=,axis=,verts=,faces= Add a shape, an outline, a mesh or a ready-made object. Its base center sits at at= (default 0/0/0). Example: add:table,name=Desk,at=0/0/0,material=walnut - move:NAME,to=,by= Move to a point (base center) or by an offset. Example: move:Desk,to=1/0/0 - rotate:NAME,to=,by= Rotate in degrees, x/y/z. by=0/0/90 turns a quarter around the vertical axis. Example: rotate:Chair,by=0/0/180 - resize:NAME,size=,factor= Set the size in meters (w/d/h, or one number for the largest side) or multiply it. Example: resize:Desk,size=1.6/0.8/0.75 - material:NAME,preset=,color=,rough=,metal=,glow=,part= Change the look. part= picks one part of a ready-made object (default: the main part). Example: material:Desk,preset=oak;material:Desk,part=legs,preset=metal,color=black - bevel:NAME,width=,segments= Round the edges. Example: bevel:Box,width=0.05 - smooth:NAME,levels= Subdivide and shade smooth (levels 1 to 3). Example: smooth:Monkey,levels=2 - array:NAME,count=,offset= Repeat the object count times, each copy offset by offset= meters. Example: array:Chair,count=4,offset=0.7/0/0 - mirror:NAME,axis= Mirror across the object's origin on axis x, y or z. Example: mirror:Wing,axis=x - copy:NAME,name=,to=,by= Duplicate an object. Example: copy:Chair,name=Chair2,by=0.8/0/0 - rename:NAME,to= Rename an object. Example: rename:Cube,to=Box - delete:NAME Remove an object (the receipt can bring it back). Example: delete:Cube - light:KIND,name=,at=,power=,color=,aim=,hour=,size= Add a light: sun (power 1 to 10, hour= sets the sun's height), point, spot or area (power in watts, 50 to 2000). Example: light:sun,hour=17;light:area,at=2/-2/3,aim=Desk,power=300 - camera:auto|NAME,at=,look=,lens= Place the scene camera (created if missing). camera:auto frames everything. Example: camera:auto;camera:Camera,at=4/-5/2.5,look=Desk,lens=35 - world:,sky=,color=,strength=,hdri=,turn= Set the background and ambient light. sky= adds a matching sun; hdri= uses a Poly Haven HDRI id (real sky and reflections, find ids at /assets.txt?type=hdris). Example: world:sky=sunset;world:hdri=kloofendal_48d_partly_cloudy_puresky,strength=1 - animate:NAME,motion=,seconds= Make it move in a loop: motion=spin, bounce or float. Example: animate:Monkey,motion=spin,seconds=4 - cut:NAME,with=,mode= Cut one object with another (boolean): real door and window openings. mode= difference (default), union or intersect. The cutter is hidden from renders. Example: add:cube,name=Door,at=0/-3/0,size=1/0.6/2.1;cut:Wall,with=Door - modifier:NAME,type=,name= Add any Blender modifier by its type (bevel, solidify, screw, displace, wave, simple_deform, decimate, remesh, wireframe, shrinkwrap, curve, weld, triangulate...) and set its settings by their Blender names. Example: modifier:Wall,type=solidify,thickness=0.2;modifier:Glass,type=bevel,width=0.02,segments=3 - set:NAME|scene|world,path=,value= Set any property by its Blender data path, relative to the object (or scene, world). List paths at /props.txt. Values: numbers, x/y/z, yes/no, names, colors. Example: set:Lamp,path=data.energy,value=150;set:scene,path=render.resolution_x,value=1920;set:Wall,path=modifiers[LAP bevel].width,value=0.05 - keyframe:NAME,path=,frame=,value= Key any property at a frame (value= sets it first): any animation. Example: keyframe:Box,path=location,frame=1,value=0/0/0;keyframe:Box,path=location,frame=60,value=0/0/3 - import:polyhaven,id=,name=,at=,size=,rot= Bring in a free (CC0) Poly Haven model by id; find ids at /assets.txt?q=chair. size= scales it (largest side). Example: import:polyhaven,id=modern_arm_chair_01,name=Armchair,at=1/0/0 Shapes: cube (box), sphere (ball), cylinder (cylinder), cone (cone), torus (ring), plane (flat square, for floors), monkey (Suzanne, Blender's monkey head), text (3D text standing up, size = letter height, needs text=), profile (any outline extruded into a solid: points=x/y|x/y|... (at least 3), height=, axis=z (floor plan), y or x (side outline: gable roofs, arches, stairs)), mesh (any mesh from points: verts=x/y/z|x/y/z|..., faces=0.1.2|0.2.3 (vertex numbers from 0)). Ready-made objects, default size w/d/h in meters and their parts: table 1.4/0.8/0.75 [top, legs]; chair 0.46/0.48/0.9 [seat, frame] (faces -Y); stool 0.36/0.36/0.65 [seat, legs]; sofa 2/0.9/0.85 [fabric, legs] (faces -Y); bed 1.6/2.1/0.9 [frame, mattress, pillow] (head at +Y); shelf 0.9/0.3/1.8 [wood, books] (faces -Y); lamp 0.4/0.4/1.6 [metal, shade]; laptop 0.34/0.29/0.23 [body, screen] (faces -Y); mug 0.11/0.08/0.1 [ceramic]; plant 0.6/0.55/0.82 [pot, leaves]; tree 2.3/2/4.6 [trunk, leaves]; rock 1/0.8/0.6 [stone]; room 6/5/3 [floor, walls] (open to the front and right). Materials: plastic (smooth plastic), matte (matte paint), wood (light wood), oak (oak), walnut (dark walnut), metal (brushed steel), chrome (mirror chrome), gold (gold), copper (copper), glass (clear glass), concrete (concrete), marble (white marble), fabric (soft fabric), leather (leather), rubber (black rubber), ceramic (glazed ceramic), glow (light-emitting, for screens, neon, bulbs). Skies: day (bright day), sunset (warm sunset), night (night, add lamps), studio (even studio light), white (white background). ## Seeing the scene (read pages; they change nothing) - http://127.0.0.1:8795/scene.txt: the open scene: names, positions, sizes - http://127.0.0.1:8795/object/NAME.txt: one object in detail: materials, modifiers, mesh size, children - http://127.0.0.1:8795/props.txt?target=NAME&path=PATH: every settable property under a path, with current values (target can be scene or world) - http://127.0.0.1:8795/view.png?from=iso|camera|top|front|back|left|right&target=NAME&res=WxH&samples=N: a render of the scene as it is now (from a copy), framed on everything or on one object - http://127.0.0.1:8795/assets.txt?type=models|hdris&q=WORDS: free Poly Haven assets to import ## Python code, only with permission For anything the steps cannot do, add code=PYTHON (URL-encoded) to /edit. Code never runs in the preview; it runs on Apply, and only while the person allows code (Blender, LAP tab). Available names: bpy, scene, math, mathutils, Vector; print() goes to the receipt. Prefer steps: they preview, undo, and need no permission. ## Agents on the user's computer (Claude Code and similar) Check links yourself before handing them over: add &lap=json to see status, issues and fixed_url, open the preview images, fix, repeat. Without a grant, give the person the final link. If the person gives you a grant key (created in Blender's LAP tab), POST http://127.0.0.1:8795/apply with header Authorization: Bearer KEY and JSON or form fields ops, code, scene, title; the answer is a receipt with an undo URL. Stay within the grant's limits. ## Examples - A cozy study in a new scene: http://127.0.0.1:8795/edit?scene=new&title=Study&ops=add:room,name=Room;add:table,name=Desk,at=-1/1.6/0,material=walnut;add:chair,name=Chair,at=-1/1.1/0,rot=0/0/180;add:laptop,name=Laptop,at=-1.1/1.6/0.75;add:mug,name=Mug,at=-0.6/1.5/0.75;add:lamp,name=Lamp,at=-2.5/2/0;add:shelf,name=Shelf,at=1.2/2.3/0;add:plant,name=Plant,at=-2.5/0.6/0;add:sofa,name=Sofa,at=0.8/-0.6/0;world:sky=sunset;light:area,at=0/-2/2.8,aim=Desk,power=400;camera:auto - Restyle the desk and make it evening: http://127.0.0.1:8795/edit?ops=material:Desk,preset=oak;material:Desk,part=legs,preset=metal,color=black;world:sky=sunset - A small house with a real door opening, windows and a gable roof: http://127.0.0.1:8795/edit?scene=new&title=House&ops=add:cube,name=Walls,size=8/6/3,material=matte,color=efe9df;modifier:Walls,type=solidify,thickness=-0.2;add:cube,name=Door,at=0/-3/0,size=1.1/0.8/2.2;cut:Walls,with=Door;add:cube,name=Win1,at=-2.5/-3/1,size=1.4/0.8/1.2;cut:Walls,with=Win1;copy:Win1,name=Win2,by=5/0/0;cut:Walls,with=Win2;add:profile,name=Roof,points=-4.6/0|4.6/0|0/2.2,axis=y,height=7,at=0/0/3,material=metal,color=7a3b2a;add:plane,name=Lawn,size=30,material=matte,color=5f8f45;world:sky=day;camera:auto - A spinning gold monkey on a marble stand: http://127.0.0.1:8795/edit?scene=new&title=Gold&ops=add:cylinder,name=Stand,size=0.8/0.8/0.3,material=marble;add:monkey,name=Suzanne,at=0/0/0.3,size=0.6,material=gold;smooth:Suzanne,levels=2;animate:Suzanne,motion=spin,seconds=6;world:sky=studio;camera:auto ## Rules - One link per answer, under 2,000 characters (4,000 at most). For big scenes prefer ready-made objects to many shapes. - Doors and windows: add a box where the opening goes, then cut:Wall,with=Box. Roofs: add:profile with axis=y. - When the user pastes their scene, change it; otherwise, or when they ask for something new, use scene=new. - If the page reports a problem, it offers a corrected link. If the user tells you about a problem, fix the link once. On the user's computer: the open scene as text http://127.0.0.1:8795/scene.txt, the manifest http://127.0.0.1:8795/.well-known/lap.json