Closed kronpano closed 7 years ago
I think it may be a bug around the random choosing of weighted rules. In case of rule's weight of 1, it seems to run every rules. But eisenscript runs only one rules according to random seeds. So it should be fixed the bug.
fix version is: https://raw.githubusercontent.com/after12am/eisenscript/master/build/eisenscript.js
This was hard to fix very than I think. And I think transcompiler is very difficult again. But It is happy to have user like you.
Thank you,
Here is works. But the code you tested was not work well...
crate
rule crate md 2 {
{} fbox
{ s 0.5 x 0.9 z 0.9 y -0.9 } crate //1
{ s 0.5 x -0.9 z 0.9 y -0.9 } crate //2
}
rule fbox{
box
}
Sorry, it worked. My testing code was a bit tweaked. try it, please.
Thanks a lot!!! Yes - looks like it works well!!!
Question: do you want it to work like Structure Synth? That means - do you expect to see the same structure when you use the same script in Stucture Synth and in BrowserSynth (sorry for the name - just using it to distinguish the two).
BrowserSynth is sound good. You have a nice sence for naming things.
The anser is yes!
following script should produce some sort of Beddard's pyramid
It does so in Structure Synth but - as far as I can see - here it does not traverse into the crate rule and through number 2,3 and 4 - only number one is executed.
Perhaps an issue with breadth first -not depth? Not sure where to look for that one.
Structure Synth vs BrowserSynth