<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CityEngine 2016 integer range sliders removed? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289668#M3971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't mind the dangling values in the UI you could use floor(slidervalue).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2016 11:07:27 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2016-11-25T11:07:27Z</dc:date>
    <item>
      <title>CityEngine 2016 integer range sliders removed?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289666#M3969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 2015 we used to be able to create range sliders that moved in integer values.&lt;/P&gt;&lt;P&gt;e.g. when I wrote @Range(2,10), I would only get 2,3,4,5,6,7,8,9,10 as my options on the slider&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I write @Range(2,10), I get 2.0, 2.1, 2.2, 2.3........9.9,10.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there no way to force the range sliders to stick to integer values anymore?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 15:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289666#M3969</guid>
      <dc:creator>DavidKossowsky1</dc:creator>
      <dc:date>2016-11-24T15:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine 2016 integer range sliders removed?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289667#M3970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I see&amp;nbsp;this is a problem. &amp;nbsp;Sorry, unfortunately, the step size is automatically determined and cannot be changed. &amp;nbsp;Thank you for the valuable input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need to use the integer values in the code, you can create another variable and use rint() to round the values you get from the slider. &amp;nbsp;You just won't see the rounded values in the slider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@Range(2, 10)
attr a = 2

const b = rint(a)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289667#M3970</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine 2016 integer range sliders removed?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289668#M3971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't mind the dangling values in the UI you could use floor(slidervalue).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 11:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289668#M3971</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-11-25T11:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine 2016 integer range sliders removed?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289669#M3972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cheryl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for letting me know. Do you have an idea if this will be adjusted in a later release? The main concern that I have heard is if a person is using a slider to adjust the number of floors in a building, they don't want to slide to a value of 2.8 floors, but rather want whole numbers that are realistic to true building values. Even if the rule is rounding, the inspector panel will still show a decimal value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 16:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289669#M3972</guid>
      <dc:creator>DavidKossowsky1</dc:creator>
      <dc:date>2016-11-25T16:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine 2016 integer range sliders removed?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289670#M3973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want whole numbers you could use text, but that won't display a slider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@Range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
attr val &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"0"&lt;/SPAN&gt;

float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;val&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289670#M3973</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-11T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine 2016 integer range sliders removed?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289671#M3974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, thanks for the idea. I guess I'll have to use it as a workaround for&amp;nbsp;now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 17:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289671#M3974</guid>
      <dc:creator>DavidKossowsky1</dc:creator>
      <dc:date>2016-11-25T17:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine 2016 integer range sliders removed?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289672#M3975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional remark: &lt;BR /&gt;The CityEngine help on &lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/cga_annotations.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/cga_annotations.html"&gt;Annotations&lt;/A&gt; points out, that &lt;CODE&gt;@Range(value1, value2, value3, ...)&lt;/CODE&gt; can be &lt;STRONG&gt;numeric or string&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 18:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-2016-integer-range-sliders-removed/m-p/289672#M3975</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2016-11-25T18:15:03Z</dc:date>
    </item>
  </channel>
</rss>

