Skip to content

Instantly share code, notes, and snippets.

@ednisley
Created July 1, 2026 20:32
Show Gist options
  • Select an option

  • Save ednisley/9d51659dc49abb97917d5be5a01ec371 to your computer and use it in GitHub Desktop.

Select an option

Save ednisley/9d51659dc49abb97917d5be5a01ec371 to your computer and use it in GitHub Desktop.
OpenSCAD source code: Plug for photo backdrop crossbar studs
// Photo backdrop fitting
// Ed Nisley - KE4ZNU
// 2026-07-01
include <BOSL2/std.scad>
Layout = "Show"; // [Build,Show]
/* [Hidden] */
ID = 0;
OD = 1;
LENGTH = 2;
HoleWindage = 0.2;
Protrusion = 0.01;
NumSides = 3*2*4;
Clearance = 0.3;
$fn=NumSides;
Tube = [23.0 - HoleWindage,1*INCH,100.0]; // arbitrary length
Aperture = [24.0,15.0,100.0]; // oblong nut hole, arbitrary Z
Washer = [10.5,20.0,1.5]; // M10
//-----
// Define things
module Fitting() {
difference() {
union() {
intersection() {
xcyl(Tube[LENGTH],d=Tube[ID]);
cuboid(Aperture,rounding=Aperture.y/2,edges="Z");
}
cuboid([Aperture.x,Aperture.y,Tube[OD]/2],rounding=Aperture.y/2,edges="Z",anchor=BOTTOM);
}
cyl(Aperture.z,d=Washer[ID]);
}
}
//-----
// Build things
if (Layout == "Show") {
Fitting();
}
if (Layout == "Build") {
up(Tube[OD]/2)
xrot(180)
Fitting();
}
@ednisley

ednisley commented Jul 1, 2026

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment