How can I get the dimensions of an object using script?
Some blender basics

The console is a great place to figure stuff out



where C = bpy.context and D = bpy.data for our convenience.

&gt;&gt;&gt; C.object
bpy.data.objects['Cube']

&gt;&gt;&gt; C.object.dimensions
Vector((2.0000009536743164, 2.0000009536743164, 2.0))

&gt;&gt;&gt; C.object.dimensions.y
2.0000009536743164

&gt;&gt;&gt; 


The height of an object in blender is its Z dimension.  Blender uses Z up and -Y forward.

The buttons in blender run operators.  In code these start with bpy.ops  The translate operator for example is bpy.ops.transform.translate()

The python console has autocomplete, hence you can peck around and nut somethings out.