Is the attribute value slider broken in version 2016?

1930
5
Jump to solution
07-25-2016 02:07 AM
LR
by
Occasional Contributor III

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).

slider_CE.png

0 Kudos
1 Solution

Accepted Solutions
ThomasFuchs
Esri Regular Contributor

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.

View solution in original post

0 Kudos
5 Replies
DevinLavigne
Occasional Contributor III

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.

Bad CGA

@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.

Good CGA

@Order(3)
@Range (0.00,1)
attr window_opacity = 0.30
0 Kudos
LR
by
Occasional Contributor III

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?

0 Kudos
ThomasFuchs
Esri Regular Contributor

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.

0 Kudos
LR
by
Occasional Contributor III

Thanks for the info.

0 Kudos
CherylLau
Esri Regular Contributor

As another workaround, if you really want a slider type tool, you could also make a handle for the attribute.

0 Kudos