Notifications
Clear all

[Closed] How do you remove all scaling on an object (with code)?

Please let me know.

7 Replies

ResetScale $

1 Reply
(@gumnut)
Joined: 11 months ago

Posts: 0

Didn’t work… It just returns true.

Edit: I can see that resets it as though no scale had been applied.
I want to reset the object to it’s original size (before scale) immediately.

In this case:


$.scale = [1,1,1]

But it will works only if the scale is preformed in top sub-object level. If you select all vertices and scale the object nothing will helps you to return the object to its previous state.

1 Reply
(@gumnut)
Joined: 11 months ago

Posts: 0

That works.
Appreciated.

Fill a kettle with equal parts vinegar and water. Boil, then turn off the burner and let the kettle sit overnight. Rinse it out the next morning.

(Sorry for being a smartass, but since you already got the correct answer I figured no harm )

        Ok so the code is:

            for i = 1 to 100 do
            (
            	if vinegaramount > 50 then (vinegaramount = vinegaramount-1)
            	else (vinegaramount = vinegaramount+1)
            
                  if vinegaramount == 50 do (
  		  boil()
  		  kettleovernightsit()
  		  rinse()
  		  exit
           	)
            
            )
            

EDIT: I just tried this and it only returns a sour beverage…

You may have to use…

$.controller.scale = [1,1,1]

$.scale = [1,1,1]
Sometimes messes up with negative scale.