<alex94>
I am pretty experienced actually making things in OpenSCAD, but clearly no programmer as yet!
<teepee>
result is what counts too. I'm using it for 3d printing, so the real object is the goal :)
<alex94>
100% - but I want to go past using code like incantations, and have real control. I really expected my original code to step through the list of items in the array - not give me the n'th letter out of all of them!
<alex94>
So will go do some exercises with the new code, and RTFM
<teepee>
looking at the current month, you could also checkout past years advent calendar code snippets
<alex94>
Interesting. I was getting confused as to how len() made any real difference in your example InPhase, so commented it out and still get exactly the same good result I wanted! :) https://bpa.st/PZPQ
<alex94>
I see how it's good practise.
<alex94>
So it seems like the real difference is how you put the whole thing within the one for() loop...
<teepee>
moving the namelist out of the for() is key
<alex94>
Then namelist[i] does exactly what I expected it to
<alex94>
Aha - thanks!
<alex94>
And your model looks good, nice living hinge
<teepee>
if it's in there, namelist will be the names one by one
<teepee>
so namelist[i] is the i-th letter
L29Ah has left #openscad [#openscad]
<alex94>
I still don't 'get' why that would be the behaviour - I know what to avoid doing now though
<alex94>
works perfectly for me as I originally expected!
<teepee>
yes, that's fine
<teepee>
well, it gives undef for the loops after the list is exhausted
<alex94>
The crucial thing was that the namelist be established upfront, then a single for() loop within which is both the translation and picking the i'th text item from the list
<alex94>
I apply practically the concept of the infinite number of monkeys with keyboards producing Shakespeare. Except I substitute one ADHD brain with coffee and a copy/paste button
<teepee>
h-bot design?
<alex94>
Nope - CoreXY. Since 2013...!
<alex94>
It could and should have been a commercial product - I look at Construct3D and wonder what might have been.
<teepee>
difficult market
<alex94>
It was 100% written from scratch, but in spirit it owes a debt to Nophead and whoever at MIT put out that CoreXY kinematics demo.
<teepee>
IIRC 2013 was when I got the good old wooden Ultimaker 1 and found OpenSCAD :)
<alex94>
I was just one guy. I sold machines based on it, but as part of consultancy work with universities. So only 25 have been made, but they've been in scientific journals!
<teepee>
ah, actually that was 2012 "Your Order #100001228 (placed on January 8, 2012 7:29:40 PM CET)"
<alex94>
Nice machines. Do you still have it? I suspect input shaping would do amazing things to its quality
<teepee>
at the time it probably have could worked for a while. most of the smaller commercial places I knew at the time are gone by now
<teepee>
I gave it to a friend a couple of years ago, I should ask if it ever printed again
<teepee>
it was a nice machine, only one annoying issue with the clip of the bowden that never was holding on well enough
<alex94>
Yes, I am still a Hubs manufacturing partner, I scaled up in time to make the wave.
<teepee>
and they made me have a troublesome start as they shipped flexible pla with the mashine which had me struggle for quite some time
<alex94>
That would be a baptism of fire.
<teepee>
yeah, sort of, after tiny prints started working at 20mm/s speeds
<alex94>
My first machine was a locally sourced Prusa Mendel iteration, after I finished the spool of PLA in the kit, I think the first reel I bought, labelled PLA, was actually ABS. You can imagine how well that went
<teepee>
indeed, probably similar head banging and wondering why it's not doing what everyone tells it should do easily
<alex94>
Still, it made me learn some things! Including OpenSCAD - with the exception of the order of putting things in for() loops which I see was my real issue today!
<alex94>
I'd better go, late here, but thanks for your time and knowledge InPhase and teepee, I can now get making a whole set of custom overlays for Apple keyboards like the ones that we had for BBC micros, to enable macros. Thanks and goodnight from the UK.
<teepee>
cool, have a good night
<teepee>
I should get some sleep too :)
<InPhase>
teepee: Ah, yeah. I was having trouble parsing what it was actually doing, and was in a rush earlier as my dinner pick-up was waiting down the street. But now it makes sense. Combo of the [ ] one element, and the implicit unnamed variable looping also over one element each.
<InPhase>
I resolved it for the quick version by just deleting the chaos I couldn't mentally parse. ;)
alex94 has quit [Quit: Client closed]
LordOfBikes has quit [Ping timeout: 246 seconds]
mmu_man has quit [Ping timeout: 255 seconds]
LordOfBikes has joined #openscad
ali1234 has quit [Remote host closed the connection]
ali1234 has joined #openscad
J24k98 has joined #openscad
J24k67 has quit [Ping timeout: 256 seconds]
Guest49 has joined #openscad
Guest49 has quit [Client Quit]
foul_owl has quit [Ping timeout: 255 seconds]
foul_owl has joined #openscad
JakeSays has quit [Ping timeout: 248 seconds]
JakeSays has joined #openscad
guso78k has joined #openscad
misterfish has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ has quit [Remote host closed the connection]
teepee has joined #openscad
J24k98 has quit [Quit: Client closed]
drkow has quit [Read error: Connection reset by peer]
J24k98 has joined #openscad
guso78k has quit [Quit: Client closed]
JakeSays_ has joined #openscad
JakeSays has quit [Ping timeout: 260 seconds]
guso78k has joined #openscad
Guest4 has joined #openscad
Guest4 has quit [Client Quit]
drfff has joined #openscad
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
guso78k has quit [Ping timeout: 256 seconds]
guso78k has joined #openscad
guso78k has quit [Quit: Client closed]
Hannes has joined #openscad
<Hannes>
I had OpenScad on a Mac book Pro Monterey12.7.6 . After passing to a iMac sequoia 15.1 it was impossible to use OpenScad. I tried to download a new version but it was impossible. Finder indicated that it does not work. Help, please
<teepee>
well, I can't help directly as Apple does not allow that
L29Ah has quit [Read error: Connection reset by peer]
L29Ah has joined #openscad
<pca006132>
why people can't just search if their issue is already there is the issue list...
L29Ah has quit [Ping timeout: 264 seconds]
deathonater has joined #openscad
Smeef has quit [Killed (NickServ (GHOST command used by deathonater))]
deathonater is now known as Smeef
deathonater has joined #openscad
deathonater has quit [Quit: (╯°□°)╯︵ ┻━━┻]
L29Ah has joined #openscad
<InPhase>
pca006132: To even think of doing that is not particularly common knowledge. Most of our userbase is non-programmers who still manage to use OpenSCAD as an "easy" language.
<InPhase>
Or people who are otherwise very light background programmers, and not really integrated into professional level or open source integrated practices.
<InPhase>
If I had to estimate, I'd think 80% to 90% of our users haven't really used git or github before.
<InPhase>
It's probably a smaller fraction by the time we select down to the subset who make it onto IRC after a problem. But still a majority I think.
<teepee>
no need to even search I pinned the one earlier today
<InPhase>
Probably wise.
<InPhase>
Although I happen to have upgraded a work laptop to 15.1, and ran some open source code written in house with Unity. Want to know the irony? It ran fine, even though nobody signed it. Why was this? It seems Unity signs everything when it builds it. Even without the programmer being a registered apple developer. And even though the programs can do absolutely everything freely and in a general
<InPhase>
purpose manner with the executable. So if you want to suffer, write a normal open source program. If you want to bypass code signing on a mac platform and distribute a trojan horse, then I guess you just use Unity.
greenbigfrog has quit [Ping timeout: 248 seconds]
LordOfBikes has quit [Ping timeout: 265 seconds]
<InPhase>
I need to try some other things later that were not written with Unity. I'll see what happens.
<InPhase>
Note that I haven't hard-validated anything I just said. I don't even know how you check for these signatures. I just noticed everything still ran fine, and searched around for why, and this is the explanation I found online.
<InPhase>
Then I contemplated the fact that if you make something in the way, but leave gaping holes open, you're not really doing the thing you say you're doing any sort of protection against an adversary, but just making things difficult for normal use.