0
$\begingroup$

So I made a script with two independent properties for the octree depth and scale features in the remesh modifier. The octree depth one works fine, but the scale one has no effect. what am I doing wrong? Pictures attached.enter image description here

enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

Property voxelgenScale is outside the permitted range for scale.

The ratio of the largest dimension of the model over the size of the grid
Type: float in [0, 0.99], default 0.9

Remesh Modifier

voxelgenScale : bpy.props.FloatProperty(
                                        name = 'Scale',
                                        default = 0.9,
                                        min = 0,
                                        max = 0.99,
                                        description = 'something',
                                        )
$\endgroup$
2
  • $\begingroup$ Ok, that definitely helps. However, now when i run the script, the scale parameter has disappeared completely. I haven't touched anything but the number values, my script now looks like this \/ voxelgenScale: bpy.props.IntProperty( name = "Scale", default = 0.9, min = 0, max = 0.99, $\endgroup$ Dec 18, 2021 at 13:01
  • 1
    $\begingroup$ I propose to use a float property for input (Type: float). Integer properties with float numbers in default, min, max raises TypeError: integer argument expected, got float $\endgroup$
    – relaxed
    Dec 18, 2021 at 13:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .