califax has quit [Remote host closed the connection]
califax has joined #openscad
rogeliodh has joined #openscad
linext has quit [Quit: Leaving]
J227569 has joined #openscad
linext has joined #openscad
linext has quit [Client Quit]
J2275 has quit [Ping timeout: 252 seconds]
linext has joined #openscad
LordOfBikes has quit [Ping timeout: 250 seconds]
LordOfBikes has joined #openscad
qeed_ has quit [Read error: Connection reset by peer]
qeed_ has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
_whitelogger has joined #openscad
J227569 is now known as J22
snaked has quit [Ping timeout: 240 seconds]
lastrodamo has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
sinvet has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
J22 has quit [Quit: Client closed]
J22 has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
fling has quit [Remote host closed the connection]
fling_ has joined #openscad
fling_ is now known as fling
qeed_ has quit [Quit: qeed_]
snaked has joined #openscad
qeed has joined #openscad
fling has quit [Remote host closed the connection]
fling has joined #openscad
J22 has quit [Ping timeout: 252 seconds]
J22 has joined #openscad
sinvet has quit [Remote host closed the connection]
sinvet has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
pie_ has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
fling has quit [Remote host closed the connection]
fling has joined #openscad
lastrodamo has quit [Quit: Leaving]
<
pa>
👋🏼 question: can i somehow set a specific $variable to a value within a module, then restore to previous value after using it?
<
Scopeuk>
pa, I might be wrong but I thought they overrode as you went down the stack
<
Scopeuk>
so $fn in a module would override $fn at parent scope but I might be wrong on that
<
Scopeuk>
its been a while
<
pa>
gotcha, thanks
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
<
J22>
pa you can use orgSpecial= $special; $special=5; children($special=$special); $special=orgSpecial;
ToAruShiroiNeko has quit [Ping timeout: 260 seconds]
ToAruShiroiNeko has joined #openscad
<
J22>
so you can change the variable inside a scope and revert back to its original.
<
J22>
so you can e.g. use rotate_extrude($fn=8); and revert to the original $fn so following polygons (circle) are not affected from $fn=8
<
teepee>
and I would very much suggest to not do that :)
<
teepee>
wait, the paste is different, that looks ok
<
J22>
you will get a warning if you reassign a variable inside the same scope - so that shouldn't be done
<
J22>
but a reason why i use fn not $fn so i can change that for a parent module without affecting children
nedko has quit [Remote host closed the connection]
nedko has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad