Query an objects attribute
Lets say you created an float variable
float $testvar;
then say you create a polygon cube in your scene.
polyCube;
//Result: pCube1
then you wanted to query the value of pCube1's translateY and assign it to the $testvar float attribute.
how do you query the value of a transform's attribute.
like pCube1.ty?
I have been in situations where i had to query the value of other things like UI elements but UI elements like windows already have a flag for querying.
Ex. maybe you ran into one of these before
if((`window -q -exists testwindow`)==true) deleteUI testwindow;
well is there some kind of query flag for transforms also?
I hope you didn't waste your time reading this line.