Skip to content

Hair from sheet: python error #53

@Felina-Lain

Description

@Felina-Lain

Hello, as title says, I'm getting an error and the addon doesn't work.
I'm on blender 3.3, hairnet 0.6.7, here's what I did:

Create a scalp mesh. Create a guide mesh, made of multiple planes, all with the same amount of vertex (I ctrl+d the first plane to make sure of that). Selected the top edge and marked as seam.
image
Selected guide, then scalp in object mode. Pressed the "from sheet" button

This is what I get:
Python: Traceback (most recent call last): File "******\hairNet\hairNet.py", line 697, in invoke return self.execute(context) File "******\hairNet\hairNet.py", line 668, in execute self.createHair(targetObject, hairGuides, options) File "******\hairNet\hairNet.py", line 771, in createHair bpy.ops.particle.brush_edit(stroke=[{'name':'','location':(0, 0, 0), 'mouse':(0, 0), 'mouse_event':(0, 0), 'pressure':0, 'size':0, 'pen_flip':False, "x_tilt":0, "y_tilt":0, 'time':0, 'is_start':False}]) File "*******\modules\bpy\ops.py", line 113, in __call__ ret = _op_call(self.idname_py(), None, kw) RuntimeError: Operator bpy.ops.particle.brush_edit.poll() failed, context is incorrect

Can anyone help me find what I did wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions