<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]