how can i use a button to change the length of a model?Math related: How do I get a different scale if the value is less than one or greater than oneScaling a ModelInstance in libgdx 3D and Bullet engineHow does scale change the object in three js?Scale button without affect other buttonsScaling a sprite by pressing buttons going too quicklyHow can I set the length of an edge in Maya via Python?I want to rotate and delete the 3d model in android using sceneform sdk through buttons instead of gestureshow to Place small node renderable on same position of bigger node renderable?Convert a scale to an integerHow to specifically scale model using pinch gesture in either lengthwise of bredthwise?

What is the German equivalent of the proverb 水清ければ魚棲まず (if the water is clear, fish won't live there)?

Does dual boot harm a laptop battery or reduce its life?

How to innovate in OR

Why does Canada require bilingualism in a lot of federal government posts?

Omnidirectional LED, is it possible?

Why is softmax function used to calculate probabilities although we can divide each value by the sum of the vector?

Can Lightning Lure be used to knock out a creature like a magical Taser?

What Marvel character has this 'W' symbol?

Unknown indication below upper stave

Why did House of Representatives need to condemn Trumps Tweets?

Why tantalum for the Hayabusa bullets?

Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?

How does the Thief's Fast Hands feature interact with mundane and magical shields?

Why did I lose on time with 3 pawns vs Knight. Shouldn't it be a draw?

Is it safe if the neutral lead is exposed and disconnected?

A variant of the Multiple Traveling Salesman Problem

How well would the Moon protect the Earth from an Asteroid?

Should I intervene when a colleague in a different department makes students run laps as part of their grade?

Argand formula and more for quaternions?

GNU GPL V3 with no code change disclosure

How to efficiently shred a lot of cabbage?

Did Vladimir Lenin have a cat?

Surviving a planet collision?

Why did some Apollo missions carry a grenade launcher?



how can i use a button to change the length of a model?


Math related: How do I get a different scale if the value is less than one or greater than oneScaling a ModelInstance in libgdx 3D and Bullet engineHow does scale change the object in three js?Scale button without affect other buttonsScaling a sprite by pressing buttons going too quicklyHow can I set the length of an edge in Maya via Python?I want to rotate and delete the 3d model in android using sceneform sdk through buttons instead of gestureshow to Place small node renderable on same position of bigger node renderable?Convert a scale to an integerHow to specifically scale model using pinch gesture in either lengthwise of bredthwise?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I want to add a button that increases the length of my model by pressing it.
what i am currently doing is getting local scale of model . incrementing it by 0.5f and seting the local scale. but nothing is happening.










share|improve this question






























    0















    I want to add a button that increases the length of my model by pressing it.
    what i am currently doing is getting local scale of model . incrementing it by 0.5f and seting the local scale. but nothing is happening.










    share|improve this question


























      0












      0








      0








      I want to add a button that increases the length of my model by pressing it.
      what i am currently doing is getting local scale of model . incrementing it by 0.5f and seting the local scale. but nothing is happening.










      share|improve this question














      I want to add a button that increases the length of my model by pressing it.
      what i am currently doing is getting local scale of model . incrementing it by 0.5f and seting the local scale. but nothing is happening.







      scale arcore sceneform






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 20:21









      Ishaan GuptaIshaan Gupta

      209 bronze badges




      209 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          You must set the scale to the node where you model is attached to:



           Node node = new Node();
          node.setParent(anchorNode);
          node.setRenderable(yourRenderable);

          button.setOnClickListener(v ->
          //make the object twice as large
          node.setLocalScale(new Vector3(2f, 2f, 2f));
          );





          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365634%2fhow-can-i-use-a-button-to-change-the-length-of-a-model%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You must set the scale to the node where you model is attached to:



             Node node = new Node();
            node.setParent(anchorNode);
            node.setRenderable(yourRenderable);

            button.setOnClickListener(v ->
            //make the object twice as large
            node.setLocalScale(new Vector3(2f, 2f, 2f));
            );





            share|improve this answer





























              0














              You must set the scale to the node where you model is attached to:



               Node node = new Node();
              node.setParent(anchorNode);
              node.setRenderable(yourRenderable);

              button.setOnClickListener(v ->
              //make the object twice as large
              node.setLocalScale(new Vector3(2f, 2f, 2f));
              );





              share|improve this answer



























                0












                0








                0







                You must set the scale to the node where you model is attached to:



                 Node node = new Node();
                node.setParent(anchorNode);
                node.setRenderable(yourRenderable);

                button.setOnClickListener(v ->
                //make the object twice as large
                node.setLocalScale(new Vector3(2f, 2f, 2f));
                );





                share|improve this answer













                You must set the scale to the node where you model is attached to:



                 Node node = new Node();
                node.setParent(anchorNode);
                node.setRenderable(yourRenderable);

                button.setOnClickListener(v ->
                //make the object twice as large
                node.setLocalScale(new Vector3(2f, 2f, 2f));
                );






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 18:47









                Bobek BobekosBobek Bobekos

                663 bronze badges




                663 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55365634%2fhow-can-i-use-a-button-to-change-the-length-of-a-model%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript