teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
mmu_man has quit [Ping timeout: 245 seconds]
sinned691500 has joined #openscad
sinned69150 has quit [Read error: Connection reset by peer]
sinned691500 is now known as sinned69150
zauberfisch has quit [Quit: No Ping reply in 180 seconds.]
zauberfisch has joined #openscad
ToAruShiroiNeko has quit [Ping timeout: 245 seconds]
LordOfBikes has quit [Ping timeout: 240 seconds]
LordOfBikes has joined #openscad
J23k38 has joined #openscad
J23k72 has quit [Ping timeout: 245 seconds]
lostapathy2 has joined #openscad
lostapathy2 has quit [Client Quit]
lostapathy2 has joined #openscad
lostapathy2 has quit [Client Quit]
lostapathy2 has joined #openscad
lostapathy has quit [Quit: WeeChat 3.5]
lostapathy2 has quit [Quit: WeeChat 3.5]
lostapathy has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 246 seconds]
teepee_ is now known as teepee
ToAruShiroiNeko has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
qeed has quit [Ping timeout: 255 seconds]
qeed has joined #openscad
gbruno has quit [Server closed connection]
gbruno has joined #openscad
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
fling_ has joined #openscad
fling has quit [Ping timeout: 246 seconds]
fling_ is now known as fling
linext_ has joined #openscad
linext has quit [Ping timeout: 245 seconds]
splud has quit [Ping timeout: 258 seconds]
splud has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 246 seconds]
teepee_ is now known as teepee
mmu_man has joined #openscad
qeed_ has joined #openscad
qeed has quit [Ping timeout: 255 seconds]
foul_owl_ has quit [Ping timeout: 255 seconds]
foul_owl_ has joined #openscad
GNUmoon has quit [Ping timeout: 246 seconds]
GNUmoon has joined #openscad
GNUmoon has quit [Ping timeout: 246 seconds]
GNUmoon has joined #openscad
javier12 has joined #openscad
javier12 has left #openscad [#openscad]
snaked has quit [Quit: Leaving]
ccox_ has joined #openscad
ccox has quit [Ping timeout: 255 seconds]
peeps[win] has quit [Ping timeout: 255 seconds]
califax has quit [Remote host closed the connection]
califax has joined #openscad
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
peeps[win] has joined #openscad
califax_ has joined #openscad
califax has quit [Quit: ZNC 1.8.2 - https://znc.in]
califax_ is now known as califax
raboof has quit [Read error: Connection reset by peer]
jaredo has quit [Read error: Connection reset by peer]
voxpelli has quit [Read error: Connection reset by peer]
raboof has joined #openscad
jaredo has joined #openscad
voxpelli has joined #openscad
guso78k has joined #openscad
<guso78k> Can anybody explain the the data flow: How do the user customized value exactly reach  the preview engine ?
<teepee> they are injected into the top level context
<teepee> that should not need to be changed though. I suppose you need to have an alternative to the parsing part
<teepee> which I think are the 2 calls above that one
J23k38 has quit [Quit: Client closed]
J23k38 has joined #openscad
guso78k has quit [Quit: Client closed]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 246 seconds]
teepee_ is now known as teepee
hyvoid has joined #openscad
hyvoid has quit [Client Quit]
hyvoid has joined #openscad
J23k38 has quit [Quit: Client closed]
J23k38 has joined #openscad
othx has quit [Server closed connection]
othx has joined #openscad
hyvoid has quit [Ping timeout: 245 seconds]
hyvoid has joined #openscad
guso78k has joined #openscad
<guso78k> teepee, this is the location where the customizer forms are created from existing parameters
<teepee> that's the line I've linked
<teepee> 2 lines above the CommentParser is the ugly thing taking the script and parsing it
<guso78k> i am interested into the location where the parameters are actually used and values are transferred to geometry engine
<guso78k> ok, will look at it very closely
<teepee> why? you would fill the same GUI, so you need to produce the input for that
<guso78k> however i doubt it will be as easy in python to inject the result into python toplevel context :')
<teepee> not directly apply it
<guso78k> in my local branch from today on i dont run openscad parse anymore when evaluating python. the knot is solved,
<teepee> hmm, right, I guess it's a bit more tricky than I thought
<teepee> but anyway, the first step is filling the GUI :)
<guso78k> the GUI is nicely filled. it can handle floats and strings
<teepee> as we certainly would not want to have a 2nd customizer UI
<guso78k> for ints, GUI does not work, so i convert ints to floats :)
<teepee> yep, OpenSCAD has no int data type
<guso78k> ahh this is why ...
<teepee> we could extend the UI to support this if that would help
<teepee> it would not be used by scad scripts, but that's fine
<guso78k> can customizer handle other datatypes apart from float and string ?
<teepee> vectors up to 4 entries
<teepee> not sure about ranges
<guso78k> i understand: up to 4 3d points
<guso78k> suppose the 4 is a graphical limitation
<teepee> I don't remember the discussion some time ago for cadhub, but it sounded like there's a reasonable solution to inject values
<teepee> nobody tried to create a more complicated GUI for things like variable length vectors or so
<teepee> people would like to have it for sure
<guso78k> did you follow the mail discussion with william ? is it possible in OpenSCAD language to have an if in the toplevel: if(a>3) { echo "a"; } else { echo "b"; }
<guso78k> just in openscad language
<InPhase> guso78k: If you write as echo ("a"); then it works exactly like that...
<guso78k> does it also work with use<file> instead ? suppose you want to "use" either file a or "use" file b depending on a variable setting. File A and File B have exactly defined the same functions but in a different way.
<InPhase> I don't think so, because inside of the { } is a new scope.
<InPhase> a=2; if(a>3) { a = 5; } else { a = 7; } echo(a); // Prints 2.
<InPhase> if(5>3) { a = 5; } else { a = 7; } echo(a); // Prints undef and yells at you with warnings.
<guso78k> you are right.  I already managed to forget about the scope issue in openscad '=(
<InPhase> And using ? : inside of a use statement makes it yell at you. :)
<InPhase> Although hypothetically we could come up with a conditional statement for use or include.
<guso78k> you could call the same function in "then" and "else"  branch ...
<guso78k> this would probably go into parser.y ;)
guso78k has quit [Ping timeout: 245 seconds]
J23k38 has quit [Quit: Client closed]
J23k38 has joined #openscad
Friithian has quit [Server closed connection]
Friithian has joined #openscad
guso78k has joined #openscad
LordOfBikes has quit [Remote host closed the connection]
LordOfBikes has joined #openscad
Alexer has quit [Quit: leaving]
Alexer has joined #openscad
gwillen has quit [Server closed connection]
gwillen has joined #openscad
hyperair has joined #openscad
hyperair has quit [Read error: Connection reset by peer]
snaked has joined #openscad
drfff has quit [Read error: Connection reset by peer]
hyperair has joined #openscad
J23k38 has quit [Quit: Client closed]
J23k38 has joined #openscad
califax has quit [Ping timeout: 246 seconds]
califax has joined #openscad
hyperair has quit [Read error: Connection reset by peer]
Guest39 has joined #openscad
Guest39 has quit [Client Quit]
fardog has quit [Server closed connection]
fardog has joined #openscad
germ has quit [Excess Flood]
germ has joined #openscad