Changeset View
Changeset View
Standalone View
Standalone View
io_anim_c3d/__init__.py
| Context not available. | |||||
| def adjust_scale_magnitude(self, height, scale): | def adjust_scale_magnitude(self, height, scale): | ||||
| mag = math.log10(height * scale) | mag = math.log10(height * scale) | ||||
| #print('mag',mag, 'scale',scale) | #print('mag',mag, 'scale',scale) | ||||
| return scale * math.pow(10, -int(mag)) | return scale * 10 ** -int(mag) | ||||
| def adjust_scale(self, height, scale): | def adjust_scale(self, height, scale): | ||||
| factor = height * scale / 1.75 # normalize | factor = height * scale / 1.75 # normalize | ||||
| Context not available. | |||||