Changeset View
Changeset View
Standalone View
Standalone View
io_anim_c3d/__init__.py
| Context not available. | |||||
| Y_up = BoolProperty( | Y_up = BoolProperty( | ||||
| name="Up vector is Y axis", | name="Up vector is Y axis", | ||||
| default=False, | default=False, | ||||
| description="Convert to Blender coordinates", | description="Check when the data uses Y-up, uncheck when it uses Z-up", | ||||
| ) | ) | ||||
| from_inches = BoolProperty( | from_inches = BoolProperty( | ||||
| name="Convert from inches to metric", | name="Convert from inches to metres", | ||||
| default=False, | default=False, | ||||
| description="Scale by 2.54/100", | description="Scale by 2.54/100", | ||||
| ) | ) | ||||
| Context not available. | |||||
| name="Scale", | name="Scale", | ||||
| default=1.0, | default=1.0, | ||||
| description="Scale the positions by this value", | description="Scale the positions by this value", | ||||
| min=0.0001, max=1000000.0, | min=0.0000001, max=1000000.0, | ||||
| soft_min=0.001, soft_max=100.0, | soft_min=0.001, soft_max=100.0, | ||||
| ) | ) | ||||
| auto_scale = BoolProperty( | auto_scale = BoolProperty( | ||||
| Context not available. | |||||
| # determine the final scale | # determine the final scale | ||||
| height = self.find_height(ms) | height = self.find_height(ms) | ||||
| #print('h', height) | #print('h', height) | ||||
| scale = 1.0 if not self.properties.from_inches else 2.54 | scale = 1.0 if not self.properties.from_inches else 0.0254 | ||||
| scale *= ms.scale | scale *= ms.scale | ||||
| if self.properties.auto_magnitude: | if self.properties.auto_magnitude: | ||||
| scale = self.adjust_scale_magnitude(height, scale) | scale = self.adjust_scale_magnitude(height, scale) | ||||
| Context not available. | |||||