Changing size of variable

How can I Change the size of a variable via script like in the animation component? I'm fluent with only basic java script.

To get the variable, you must use the GetComponent, to get the script (If the script is on another game object, than you need to make a var for that game object, and have the GetComponent go off that), then you need to .varibaleNameHere = ??.

Just read up on the API, and search the forums, people've asked this before =).