2
$\begingroup$

Digging around stackexchange if found just the thing I was looking for for my Blender project object slicer script. The only thing - I can't get it to work. I keep getting these error messages:

enter image description here

Python: Traceback (most recent call last): File "/Users/gutuser01/Documents/Value2Go/sailboat-lines.blend/Text", line 78, in File "/Applications/Blender.app/Contents/Resources/3.2/scripts/modules/bpy/ops.py", line 115, in call ret = _op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: : keyword "interval" unrecognized

I run Blender 3.2.2 (3.2.2 2022-08-03) on Mac.

Also: please do not suggest using a simple shader for the line pattern effect, as I plant to make svg export of the lines.

Thanks.

$\endgroup$
2
  • $\begingroup$ You link to an article from 2014, Blender Python API has changed a lot since then and porting to the new versions may be tricky… $\endgroup$ Commented Oct 27, 2022 at 14:27
  • 1
    $\begingroup$ It’s a script for a rather old version of Blender, so you might run into other issues. But for a start: in line 57, replace = by :. That’s the new way of notating operator properties. $\endgroup$ Commented Oct 27, 2022 at 14:32

1 Answer 1

1
$\begingroup$

As Sietse said right, change here:

  1. interval : bpy.props.FloatProperty(name="Slice Interval", default=1.0, min=0.01, max=100)

and

  1. change to this:

    bpy.ops.mesh.primitive_plane_add( location=loc, rotation=rot)

then it works

enter image description here

$\endgroup$
2
  • $\begingroup$ Thanks a lot! It worked nicely! $\endgroup$ Commented Oct 27, 2022 at 15:22
  • $\begingroup$ you are welcome! $\endgroup$
    – Chris
    Commented Oct 27, 2022 at 15:36

You must log in to answer this question.

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