<?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: (MEL) attrFieldSliderGrp -step flag doesnt fully work in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10424201#M4074</link>
    <description>&lt;P&gt;i have been searching and found a workaround. but cant seem to get it to run properly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
   string $window = `window -title "intSliderGrp Example"`;
   string $slider = ($window + "Slider");
   int $step=3;
   columnLayout -columnAlign "right";
      intSliderGrp -l "Even" -f 1 -step $step -fs $step
         -cc ("intSliderGrp -e -v ((intSliderGrp -q -v "+$slider+") - (fmod(float(intSliderGrp -q -v "+$slider+"), "+$step+"))) " + $slider)
         $slider;
   showWindow;
}
// Error: Line 1.53: Invalid use of Maya object "v". // &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jun 2021 14:38:27 GMT</pubDate>
    <dc:creator>absoluteKelvin</dc:creator>
    <dc:date>2021-06-27T14:38:27Z</dc:date>
    <item>
      <title>(MEL) attrFieldSliderGrp -step flag doesnt fully work</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10417572#M4073</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;window -title "Attr Field Slider Groups";
    string $objName[] = `sphere`;
    columnLayout;
    attrFieldSliderGrp -min -10 -max 10 -step 2 -at ($objName[0]+".tx");
showWindow;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the mel example from doc with -step flag set to 2 increments. Only works when ctrl + middle click is held. just dragging the slider doesn't increment at 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to documentation this is suppose to work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/cloudhelp/2020/ENU/Maya-Tech-Docs/Commands/attrFieldSliderGrp.html" target="_blank" rel="noopener"&gt;https://help.autodesk.com/cloudhelp/2020/ENU/Maya-Tech-Docs/Commands/attrFieldSliderGrp.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-step&lt;/STRONG&gt;(&lt;STRONG&gt;-s&lt;/STRONG&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; float&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C Q E&lt;/P&gt;&lt;P&gt;Sets the increment for both the slider and float field.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 13:25:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10417572#M4073</guid>
      <dc:creator>absoluteKelvin</dc:creator>
      <dc:date>2021-06-24T13:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: (MEL) attrFieldSliderGrp -step flag doesnt fully work</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10424201#M4074</link>
      <description>&lt;P&gt;i have been searching and found a workaround. but cant seem to get it to run properly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
   string $window = `window -title "intSliderGrp Example"`;
   string $slider = ($window + "Slider");
   int $step=3;
   columnLayout -columnAlign "right";
      intSliderGrp -l "Even" -f 1 -step $step -fs $step
         -cc ("intSliderGrp -e -v ((intSliderGrp -q -v "+$slider+") - (fmod(float(intSliderGrp -q -v "+$slider+"), "+$step+"))) " + $slider)
         $slider;
   showWindow;
}
// Error: Line 1.53: Invalid use of Maya object "v". // &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 14:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10424201#M4074</guid>
      <dc:creator>absoluteKelvin</dc:creator>
      <dc:date>2021-06-27T14:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: (MEL) attrFieldSliderGrp -step flag doesnt fully work</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10424760#M4075</link>
      <description>&lt;P&gt;Well you are using fmod here and you are using an intSliderGrp. You won't need to cast your ints as floats to use fmod with if you use an integer modulo (%). I did look at the &lt;EM&gt;-step&lt;/EM&gt; flag, and as you say, it isn't working properly.&lt;BR /&gt;&lt;BR /&gt;This is a pretty hacky work around for it and it is similar to what you are trying to do:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;string $window = `window -title "intSliderGrp Example"`;
string $slider = ($window + "Slider");

proc stepChange()
{
    int $step=3;
    int $changeNum;
    $sliderVal = `intSliderGrp -q -v slider`;
    print($sliderVal);
    if ($sliderVal % $step != 0)
    {
        $changeNum = $sliderVal - $sliderVal % $step;
        intSliderGrp -e -v $changeNum slider;
    }
}

columnLayout -columnAlign "right";
   intSliderGrp -l "Even" -f 1 -step $step -fs $step -cc stepChange slider;
showWindow;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 00:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10424760#M4075</guid>
      <dc:creator>Rourker27</dc:creator>
      <dc:date>2021-06-28T00:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: (MEL) attrFieldSliderGrp -step flag doesnt fully work</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10426074#M4076</link>
      <description>&lt;P&gt;thanks for that. Rourker27.&lt;/P&gt;&lt;P&gt;end up with this using your suggestion.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
string $window = `window -title "intSliderGrp Example"`;
global string $slider;
$slider = ($window + "Slider");

proc stepChange()
{
    int $changeNum;
    $sliderVal = `intSliderGrp -q -v $slider`;
    //print($sliderVal);
    if ($sliderVal % 2 != 0)
    {
        $changeNum = $sliderVal + ($sliderVal % 2);
        intSliderGrp -e -v $changeNum $slider;
    }
}

columnLayout -columnAlign "right";
   intSliderGrp -l "Even" -f 1 -step 2 -fs 2 -cc stepChange $slider;
showWindow;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10426074#M4076</guid>
      <dc:creator>absoluteKelvin</dc:creator>
      <dc:date>2021-06-28T12:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: (MEL) attrFieldSliderGrp -step flag doesnt fully work</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10426490#M4077</link>
      <description>&lt;P&gt;Looks good to me, I doubt you need the -step and -fs flags, but they aren't doing anything anyway so no harm I guess. I hope this gets a proper fix at some point.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 15:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-attrfieldslidergrp-step-flag-doesnt-fully-work/m-p/10426490#M4077</guid>
      <dc:creator>Rourker27</dc:creator>
      <dc:date>2021-06-28T15:31:47Z</dc:date>
    </item>
  </channel>
</rss>

