I hope my lispy english is not too annoying. :)

A scene file for the interested:
dropbox.com/s/l8zc9bys1sdpf4t/stuff.ma

The pseudocode is:

rotateValue = translateValue/radius * 180/pi # 180/pi in maya expressions can be represented with 180/deg_to_rad(180)

If you want to query the bounding box of an object with expressions use the "xform -q -bb" command and you will get back 6 values. The 3 min values and 3 max values, so just subtract the corresponding ones. You can store it in a float array and subtract [3+i]-[i], where i is in interval [0, 2].

Here are the links:
upload.wikimedia.org/wikipedia/commons/2/2a/Pi-unrolled-720.gif
en.wikipedia.org/wiki/Radian#Conversions
download.autodesk.com/us/maya/2010help/Commands/makeRoll.html

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…