Whenever I try to use it, it loses focus the moment I move it / the value changes. Then it disappears until I click on the value field again.
(left 2015.2, right 2016).
Solved! Go to Solution.
Hello L R,
Thank you for the report.
In CityEngine 2016.0 the sliders have been redesigned.
Unfortunately there is a known issue with the slider loosing its focus.
It will be addressed in the next release.
As a workaround you can always type any number (even outside the defined range) in the value field.
The CGA parsing engine is stricter than previous versions. Previous versions of CityEngine would parse through some sloppy CGA and still work.
For example, something like this works, even though we've declared it a color (@Color) and its obviously not.
@Color @Order(3) @Range (0.00,1) attr window_opacity = 0.30
The behavior I noticed was that every attribute before the sloppy CGA would work fine in 2016, even sometimes poorly formed ones. But every attribute after it would not be available.
Check your attribute grammar and I'm sure you'll find your issue.
@Order(3) @Range (0.00,1) attr window_opacity = 0.30
It's unfortunately not bad cga - this is what I wrote for the test:
version "2016.0" @Range(0,50) attr Extrude = 0 @StartRule Lot --> color(1,1,0) extrude(Extrude)
I noticed that when I hover over the slider that pops up, the CE window loses focus. When the value changes by moving the slider, it gains focus again, but apparently at the cost of the slider.. could this be a video card driver issue?
Hello L R,
Thank you for the report.
In CityEngine 2016.0 the sliders have been redesigned.
Unfortunately there is a known issue with the slider loosing its focus.
It will be addressed in the next release.
As a workaround you can always type any number (even outside the defined range) in the value field.
Thanks for the info.
As another workaround, if you really want a slider type tool, you could also make a handle for the attribute.