How to force a Manipulator inside a Manipulate to auto-run?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I want to use a slider (not drop-down list) for a list of discreteValues to do the Manipulate (I used Sin[x] below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2 as an example).



Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True.



discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;

Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]


By default, the slider won't auto-run. How can I force the slider to auto-run by default?



I tried to simply change Manipulate to Animate, but I got the error.



Many thanks!










share|improve this question

























    up vote
    2
    down vote

    favorite












    I want to use a slider (not drop-down list) for a list of discreteValues to do the Manipulate (I used Sin[x] below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2 as an example).



    Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True.



    discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;

    Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]


    By default, the slider won't auto-run. How can I force the slider to auto-run by default?



    I tried to simply change Manipulate to Animate, but I got the error.



    Many thanks!










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I want to use a slider (not drop-down list) for a list of discreteValues to do the Manipulate (I used Sin[x] below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2 as an example).



      Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True.



      discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;

      Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]


      By default, the slider won't auto-run. How can I force the slider to auto-run by default?



      I tried to simply change Manipulate to Animate, but I got the error.



      Many thanks!










      share|improve this question













      I want to use a slider (not drop-down list) for a list of discreteValues to do the Manipulate (I used Sin[x] below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2 as an example).



      Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True.



      discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;

      Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]


      By default, the slider won't auto-run. How can I force the slider to auto-run by default?



      I tried to simply change Manipulate to Animate, but I got the error.



      Many thanks!







      manipulate dynamic gui-construction animation






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      H42

      1,461111




      1,461111




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Replace Manipulator with Animator:



          Manipulate[Sin[x], 
          Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
          SaveDefinitions -> True]





          share|improve this answer




















            Your Answer




            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "387"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182840%2fhow-to-force-a-manipulator-inside-a-manipulate-to-auto-run%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            Replace Manipulator with Animator:



            Manipulate[Sin[x], 
            Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
            SaveDefinitions -> True]





            share|improve this answer
























              up vote
              2
              down vote



              accepted










              Replace Manipulator with Animator:



              Manipulate[Sin[x], 
              Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
              SaveDefinitions -> True]





              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                Replace Manipulator with Animator:



                Manipulate[Sin[x], 
                Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
                SaveDefinitions -> True]





                share|improve this answer












                Replace Manipulator with Animator:



                Manipulate[Sin[x], 
                Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
                SaveDefinitions -> True]






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 43 mins ago









                kglr

                162k8187386




                162k8187386



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182840%2fhow-to-force-a-manipulator-inside-a-manipulate-to-auto-run%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery