Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.51
Category: Object
Python: 3.1
Script name: Scale to Image
Author(s): testscreenings
Status: Closed
This is a port of the 2.49 functionality of the alt-V shortcut to scale an object
to the proportions of the imagetexture the object uses.
Usage:
When activated in object mode (by pressing alt-V, or searching for the operator)
all selected objects scale-X values get set to the
X-aspect of the first image in the texture stack of the first material in the material stack
of the respective object.
When using this it is important to take the original scalevalues into account
since all it does is setting a new value for the scale.x component
and resets scale.y and scyle.z back to 1.
Todo:
Maybe have a look into taking the original scalevalues into account.