I added back in the $maxPine to the max value of the pine slider, and now it's saying that maxPine is an undeclared variable, but surely it's being declared in the global proc maxPinevalue which comes before global proc gilesTreeGen? global proc maxPinevalue(){ int $oakPercent = `intSliderGrp -q -value oak`; int $maxPine =…
Ah right, yes i do remember my teacher saying something about that issue with maya :/ Here's the script thus far: global string $Density; global string $Area; global string $placementHelper; //main window window -title "Giles Tree Gen V 0.1" -iconName "Tree Gen" -widthHeight 300 300; columnLayout -adjustableColumn true;…
Another day another load of issues. I'm getting "Error while parsing argument" on the dragcommand proc. I thought i was doing it right, the script runs, but whenever you move the slider the error while parsing is spammed in the editor and the value doesn't get restricted to below the remaining percentage. global proc…
Right, this is actually starting to go somewhere now! This is what i have so far, met another problem though. /////////////// global string $Density; global string $Area; window -title "Giles Tree Gen V 0.1" -iconName "Tree Gen" -widthHeight 300 300; columnLayout -adjustableColumn true; $Density = `intSliderGrp -label…
So heres the code that I reworked to be more efficient in the long run. It should be easier to read and understand. Im gonna work through yours and comment it and hopefully you can look at what I have and see what I'm talking about. global proc gilesTreeGen() { if (`window -exists gilesTreeGen`) { // if Window exists…