Flexi Bezier Tool

Hi Polynut! I am not sure if I understand the requirement right. But have you tried the Join Paths tool in the toolkit?

3 Likes

Thank you very much since i never thought for a second to look at the tool panel and there it was!

1 Like

Just want to say a big THANK YOU!!!
Your add-on is an awesome improvement in a workflow.
The way I can skip all tedious steps … like add curve object, delete points, start to add control points and finally after that correct shape by selecting handles … just simply draw almost final shape … uf. Thank you :slight_smile:

I dont know if its because I have Adobe background or I don`t know to use blender curve properly, but finally I can feel like a human :slight_smile: (human - in any meaning that came up to your mind :slight_smile: )

Just looks like add-on is not ready for 2.82 right? I cant see it on an addon list after installation. 2.80 works great.

2 Likes

You are most welcome and thank you from me as well for the cool feedback!
My motiovation comes mostly from comments like this :slight_smile:

I have been using the add-on also with 2.82 without any problems so far.
Could you check the console to see if there are any errors after installing the add-on.
Also, I assume you are installing the script py file from this location.
You might also want to check if, after installing it, the script file (blenderbezierutils.py) is getting correctly copied in the add-ons folder: /blender/2.82/scripts/addons

Hmm … I don’t know what to say. It’s on the list now in 2.82 as well.

Morning I did installation from that directory, there was no error in installation, I saw script in proper place installed, I also closed and opened blender again, but after all of that it still wasn’t shown in search. Hmm … something in between land and sky :slight_smile: OK, forget it, thanks and sorry for bothering you :slight_smile:

1 Like

The functionality to configure hotkeys from add-on preferences is now available in the latest version of the toolkit (0.9.71). The usage is pretty intuitive. But here’s a short video that demonstrates how to change 1) “Snap to Vert” hotkey from Alt to T and 2) “Undo Last Seg” in Flexi Draw to Q (just as examples).

I could not find a suitable sample code for this particular requirement, so have done some experimental coding (which tends to be a bit hacky :slight_smile: ) So just let me know if you face any issues.

Please note, there are some reserved keys like X, Y, Z (used for locking to axis or plane), Space, Enter, Escape which are not available for assignment. Also if the key is already assigned, it can’t be assigned to another op again.

3 Likes

thank you for creating this plugin

id like to request a function or selection hover restriction
vertex mode select ( selects vertex ) , segment mode ( line or 2 points ) , spline select ( whole spline or curve )

similar to 3ds max splines

question

  1. is there way to change spacebar = confirm into another key? like right click to confirm
    currently my spacebar is assigned as pan in 3d viewport

  2. is it possible to activate the gizmo while using the tool?

  3. how do i contrain to 90 degrees using shift or draw a straight line

1 Like

You might want to check the Flexi Edit tool and the other toolkit related videos (playlist link in the first post of this topic). There is now also delete segment and highlight snap point functionality available in Flexi Edit. I am planning to publish a short youtube video on the newer enhancements soon.

There are currently three ways to confirm: spacebar / enter / double click. Additionally, if you press Shift while confirming, the curve will be autoclosed. At the moment, this is not configurable due to some technical challenges in the code.

The gizmo tools are accessible in Flexi Edit. They are unusable only during drawing, and that’s a known issue. I tried to find a fix, but looks like there is no easy solution to the problem at this point. So currently, while using Flexi Draw, if you want to use the gizmos, you will have to switch to the select tool (hotkey - Escape).

You need to hold down Shift (configurable) to constrain the angle. Also, in origin drop-down, you will need to select Reference Line Point option. Please check this post.
Apart from constraining the angle, a number of other snapping & constraining features are available in all three Flexi tools. You might want to check out the related video.

1 Like

Hi Khemadeva,

I got an error that happen to me in some scene when closing a path and the strange thing is that if i open a new scene and do the same path tracing and it is working fine but once i have the error in a scene i cannot make it work again in that scene.

Here the error message that show up ;

Hi Polynut,

I checked the code and I think in the scene you are working on, there’s is a curve object with spline that has no Bezier points. (Spline is basically a separate part in curve, so for example in a curve converted from text there are roughly as many splines as letters. ) This is actually an invalid condition as each spline is supposed to have at least one Bezier point.
Please paste the following command in the console window (available in scripting workspace) and hit enter. This will show you all the curve objects with Bezier point count in each spline in them. The curve object with a Bezier point count zero for any of its spline is invalid and it may be better to delete and re-create it to avoid problems like this.

[(o.name, [len(s.bezier_points) for s in o.data.splines if s.type == 'BEZIER']) for o in bpy.data.objects if o.type == 'CURVE']

If possible, please share the blend file.

Again, for bugs, you might want to consider using the Github Issues page, so that we can have centralized tracking.

1 Like

Btw did you check the Curve Tools Add-on? Looks like it has got many of the tools you need, including outline.

1 Like

Yes i tried them but the offset curve don’t work on any complex shape, on simple shape it is working but the minute you have something a little more complex it is not working.

I now use Inkscape since the outset tool work wonderfully well even on very complex shape but it make working a pain since i need to scale and export&import.

Would be really nice if all the bezier features set would be in one single addon.

2 Likes

Thank you for this amazing addon, this will make the archviz modelling much easier. This was the one thing which blender was lacking. It is complete now, Thanks again.

Suggestions: -
Snapping options can be improved, you know better how to enhance it more. Keep up the good work!

2 Likes

Maybe I did not read it full discussion on this but do we have the offset by value feature in this add-on?
Also, which modifier should we use just to extrude an enclosed shape in 3D without converting it to mesh?

Thank you for the nice feedback :slight_smile:

I understand snapping is very important for drawing and editing curves, so have spent quite a bit of time building and refining the Snapping and Locking Framework. Maybe it can be made a bit more user friendly, but as far as the functionality is concerned, I guess, it is quite versatile and feature-rich.

Here are a few of the things you can do while drawing or editing with the tool:

  • Snap to Bezier Points, vertices, faces (default hot key alt)
  • Snap to Grid (gets adjusted based on the zoom level) (default hot key ctrl)
  • Snap to Angle increments (45, 90 etc.) (default hot key shift)
  • Combine Snap to Angle and Snap to Grid (by pressing the hotkeys simultaneously)

  • lock to axis (hot keys X, Y, Z)
  • lock to plane (hot keys shift+X, shift+Y, shift+Z)

  • Lock to axis / plane from the drop-down menu so that the locking is applied throughout the drawing and editing operation

For precision drawing / editing:

  • Enter values of the coordinates of both handles and Bezier points via keyboard
  • Tweak position in Grab Bezier (in draw) and edit Points or curve segments (in Edit) (default hotkey: P)
  • Enter coordinates in polar form when the drawing / editing is locked to a plane

  • Use a number of flexible options for setting origin and orientation (which even includes an arbitrary custom axis) for snapping / locking / tweaking.
    (IMO this makes the framework quite powerful.)

  • Lastly, almost all the hotkeys are now configurable via Add-on configuration. So for example, if you have assigned alt to emulate middle mouse button, you can have any available key on keyboard for snapping to vertex.

In short, i have tried to make the Snapping Framework as comprehensive as possible. But of course, I am open to suggestions for further refinements. One thing, which could be done from usability perspective is: maybe convert the origin and orientation drop-down menu to a pie-menu. But the problem with pie-menus is that they take up a hotkey, which are a rather scarce commodity :slight_smile: Also, the Lock drop-down is closely related to origin / orienation selection. So making one selection via pie-menu and the other via drop-down may add to the confusion and making everyting a pie-menu would perhaps be an overkill.

The toolkit is relatively young, this and the fillet feature may get added in future. I don’t have the timeline though.

I am not sure if I understand the question right. But you can extrude the Bezier Curves from the Geometry menu in Context tab.

2 Likes

Am I doing something wrong? I have not been able to snap to grid I am always a bit off. When I press “Ctrl” it snaps to something but not the grid line. I played around with the settings in preferences/edit and no luck, so also I played around with the size of the grid, the units. and still not getting it to snap to grid correctly. Other tools that use snap work fine snapping to grid. “Alt” Snap to vertex works fine. “Shift” snap to axis doesn’t work well either. Thanks for you patience…

Awesome stuff man! This has been long awaited for.
Keep up the good work!

1 Like

This may be obvious, but just want to confirm. Are you trying the snapping in perspective or orthographic view? The snapping to grid may not look right in perspective view, even though the point lies on the grid (please see the video). If this is not the issue, you might want to change the hot key from ctrl to something else, in case ctrl is used by some other function.

As far as the snap to angle increment (shift) is concerned, it works with respect to the selected origin (and orientation). So if you want to snap with respect to the segment, you will need to choose ‘Reference Line Point’ in the origin drop-down. (I have made this the default selection in the latest version.) To make it clear, the tool indicates the origin and orientation used for snapping with a new set of axis lines.

1 Like

I checked github and downloaded the latest version and the shift works fine now. The snap to grid works great, but only with metric units if I use imperial it does not work correctly. Unfortunately I grew up using metric, but I must use imperial units for my work

Hi Khemadeva,

Thanks for the explanation. It is solved now but by choosing the 2D option in Shape parameters: -