<ubuntourist>
Can soomeone provide a good example of using the command line option --animate?
<ubuntourist>
I tried using "--animate 720" on a .scad file that I had previously animated from within the IDE, but I ended up with 720 empty frames.
<ubuntourist>
(Animating from within the IDE, the camera does a birdseye fly-around the object. I use 30 FPS and 720 steps, and it works great. But being able to do it from Bash scripts would be even better.)
<InPhase>
ubuntourist: Two approaches. You can specify camera view from the command line. You can also specify camera view with special variables inside the script in a manner that depends upon $t.
L29Ah has quit [Read error: Connection reset by peer]
<ubuntourist>
@InPhase, the test.scad file uses $t and $vpr and works great from the pulldown menu in the IDE. It's the command-line I'm having trouble with.
<ubuntourist>
InPhase, In the source, I have a line $vpr = [60, 0, $t * 360]; that flies the camera.
<InPhase>
That will work identically, but if you're seeing nothing, you might not have the rest of the camera frame set right. There are camera specification options on the command line though. See the --help
<ubuntourist>
InPhase Stupid me: I just opened it in the IDE and saw nothing, which puzzled me.
<InPhase>
ubuntourist: Here's my reference example for fully specifying camera from the scad script: https://bpa.st/6F6A
<InPhase>
ubuntourist: This is a more flexible programmatic option.
<InPhase>
As demonstrated in this one. (Try it first from the gui.)
<ubuntourist>
InPhase Well, I wrote the code a long time ago, and forgot that I had multiplication in there that made the object HUGE. Clicking the ViewAll icon brought it all in focus.
<InPhase>
FPS 30, steps 300
<ubuntourist>
InPhase So, either in the script or at the command line, I need to add a "View All" to scale properly before animating. (Once I took out the multiplier, the command line did what it should have.)
<InPhase>
Whether or not "view all" will work depends on the dynamics of the animation.
<InPhase>
I never relied on a view all for a command line generation because it can be so finicky with moving objects.
<InPhase>
Instead, always a predefined frame. If I don't have the cameras specificied in the scad script for an animation, I put them into an accompanying bash script that lives with the file, where that bash script is for the generation of the animation with camera parameters locked into it.
L29Ah has joined #openscad
<InPhase>
You can "extract" good camera parameters by finding them in the gui and reading them from the bottom panel of the gui, or echo'ing them to the console.
<ubuntourist>
InPhase, I chose, for my test, a SCAD file I wrote for a friend who wanted the axis to use "feet" rather than "mm". He didn't want to do the math himself.
<ubuntourist>
InPhase, Very helpful! Thanks. I shall pursue that.
<InPhase>
ubuntourist: For imperial units, keeping the file mm but the code and outputs can be in imperial: https://bpa.st/PBCA
<InPhase>
ft(6, 1, 1/4) i.e., 6', 1 and 1/4"
<InPhase>
And an echo with ImpStr would be like "6 ft, 1 1/4 in"
<InPhase>
Then you get full human interfacing with imperial, but you can stay mm primary, and be more standards compatible. And also this helps for mixing and matching.
<InPhase>
This is good for just about everything other than apartment layouts where you want the axes themselves to show feet.
ubuntourist has quit [Ping timeout: 255 seconds]
mmu_man has joined #openscad
ubuntourist has joined #openscad
<ubuntourist>
InPhase, +1
<ubuntourist>
Off to learn... Ta-ta.
ubuntourist has quit [Remote host closed the connection]
<Guest62>
Hey - Could anyone advise me on how to make a cylinder with a bevelled bottom edge? Not even ChatGPT seems to have it figured out :(
<Scopeuk>
Guest62 so sort of the end of a partially sharpened pencil shape? I think I would look to create a rectangle with a cut off corner in 2d then rotate extrude
<Guest62>
Scopeuk - Maybe bevelled isn't always the right term. A slightly rounded edge on the base so its not sharp
<Scopeuk>
Recomend looking at what that is doing in 2d and then the 3d, all dimensions are fully arbitrary
<Guest62>
Hmm ok thanks, i think thats more of a chamfer. It's for 3d printing so for removing the sharp edges
<Scopeuk>
I guess fillet is typically a curved profile, you could do similar removing a circle from the base shape in 2d
<InPhase>
Guest62: If you want something more specific, try hitting google image search or bing image search until you find an example of what you mean that you can share.
<teepee>
that AI nonsense is really getting out of hand :(
ferdna has quit [Quit: Leaving]
<InPhase>
teepee: Well, I guess the submitter was working with the assumption that we just hadn't thought about the issue, rather than that it has been thought about to exhaustion and it's simply a fundamentally hard problem that no current gen AI is going to swoop in and outwit us on. :)
<teepee>
and that seems to be a dangerous path to walk
<InPhase>
Yep.
<teepee>
it should be a tool to help getting results
<teepee>
right now it's more the tool that controls people
knielsen has joined #openscad
knielsen has quit [Ping timeout: 248 seconds]
knielsen has joined #openscad
knielsen has quit [Ping timeout: 264 seconds]
knielsen has joined #openscad
Smeef has quit [Read error: Connection reset by peer]
Smeef has joined #openscad
germ has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]