GithubHelp home page GithubHelp logo

blenderbezierutils's People

Contributors

shriinivas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blenderbezierutils's Issues

Can't seem to 'Flexi Edit' Bezier curves after creation.

I have been trying and trying to edit curves I have drawn in draw mode using the Flexi Draw Bezier tool. When I try to activate the 'Flexi Edit Bezier' Tool; the curves then show a green highlight around them, and do not show the blue sections as shown in the documentation video. And clicking on the curves never reveals any Bezier handles to move or manipulate. If I do click and drag; it just changes to the 'Move' tool, and moves the entire grease pencil object.

Not sure if this is a bug, or if I am doing something wrong.

I also do not get the select tool box that shows up with Shift+Spacebar. I tried deleting some of my keybindings to get that to work; but it never shows up.

I would suggest allowing the user to setup their own keybindings per tool (in the preferences panel>Add-ons>Bezier Utilities.); instead of everything being locked down. Perhaps a pie menu would be a nice enhancement as well.

New error while editing a curve

New error that I noticed while editing a curve:

Original report: https://blenderartists.org/t/flexi-bezier-tool/1168179/382

Addon version: 0.9.85
Blender version: blender-2.83-11df5443e5d0-windows64

Traceback (most recent call last):
File "C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py", line 4439, in modal
return self.subModal(context, event, evtCons)
File "C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py", line 7259, in subModal
changed = ei.insertNode(handleType)
File "C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py", line 6249, in insertNode
invMw = obj.matrix_world.inverted()
NameError: name 'obj' is not defined

location: : -1:

  1. create a curve
  2. edit it with Flexi Edit Bezier
  3. press CTRL + double click on it

Integration workflow

There are a few integration issues with the workflow and keymap of this addon. I would love to work with you on solving those issues for a better user experience.

Are you interested? How can we do this? Love ya work.

Feature request: Allow user to fold a 3D bezier curve

Imagine that we have drawn a shape on a paper, and then we fold the paper in the middle. The original shape is not changed, but now both parts of the shape lie at an angle.

Can we have this type of effect in the Bezier Curve addon?

Note that the curve can cross the fold at one place or multiple places. (or, multiple curves may go across the fold.)
In all cases, the folding angle should be the same for all curves that cross the fold.

Draw on an existing surface?

Is it possible to draw on a surface with this tool? If so, are there instructions you could point me to? If not, feature request. Great tool! Thanks

Change Point Type of individual points

Hi, Great add-on. Q: I see on the N-Panel that you can set ALL the point types all at once. What about converting just ONE point to and from different types? Meaning, how can I change just the selected point from Auto to Free, and then from Free to Auto? I do realize that if I get out of the Bezier Utility mode and just back to normal mode. Then tab into edit mode I can just edit the points like in vanilla Blender. But when I am using Bezier Utility's "Flex Edit" mode I can't use the V key to change point type for one point. I seems unproductive to have to go in/out of Flexi Edit to just change a point. Am I missing something or can this function be added?

Doesn't work - freeze at line 477

Here Keyboard Interrupt of endless cycle:

Traceback (most recent call last):
  File "/home/design/.config/blender/2.81/scripts/addons/blenderbezierutils.py", line 3089, in modal
    return self.subModal(context, event, snapProc)
  File "/home/design/.config/blender/2.81/scripts/addons/blenderbezierutils.py", line 5063, in subModal
    self.refreshDisplaySelCurves(displayInfosMap, locOnCurve)
  File "/home/design/.config/blender/2.81/scripts/addons/blenderbezierutils.py", line 4631, in refreshDisplaySelCurves
    ModalFlexiEditBezierOp.refreshDisplay(displayInfos, locOnCurve, self.snapper)
  File "/home/design/.config/blender/2.81/scripts/addons/blenderbezierutils.py", line 4611, in refreshDisplay
    ModalBaseFlexiOp.refreshDisplayBase(displayInfos, snapper)
  File "/home/design/.config/blender/2.81/scripts/addons/blenderbezierutils.py", line 2994, in refreshDisplayBase
    areaRegionInfo = getAllAreaRegions()
  File "/home/design/.config/blender/2.81/scripts/addons/blenderbezierutils.py", line 478, in getAllAreaRegions
    areas = [a for a in bpy.data.screens[i].areas if(a.type == 'VIEW_3D')]
  File "/home/design/.config/blender/2.81/scripts/addons/blenderbezierutils.py", line 478, in <listcomp>
    areas = [a for a in bpy.data.screens[i].areas if(a.type == 'VIEW_3D')]
KeyboardInterrupt

Feature request: Add midpoints of segments as snap-points

There is a built-in addon called snap utlities line, which shows snap points as we move the mouse pointer.

  • If we get close to the mid-point of the edge, it snaps to the mid-point and changes the color of the point.

Can it be done with Bezier Utilities also?

Also consider if the midpoints of a face can be highlighted when the mouse pointer is within a threshold distance.

Blender crashes on multi-window setup opening one-window startup file

System Information
Operating system: Linux-4.15.0-62-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.116

Blender Version
Broken: version: 2.81 (sub 15), branch: master, commit date: 2019-10-12 15:33, hash: rB95f020c853d6

Bezier utils version
0.9.61 version used.

Exact steps for others to reproduce the error

  • Enable Bezier utils addon
  • Window -> New window.
  • Save Startup File (maybe doesn't matter)
  • File -> New -> select any workspace with one window
  • Crash

blender.crash.txt

Bezier tools cause the Measure & Annotation tools to disappear when using Blender templates

Issue:
When using e.g. the Blender Sculpt template (or any other template) the Measure & Annotation tools in the toolbar in Object Mode disappear when Bezier Tools is installed.

Steps:

  1. Download and extract a new zip copy of Blender 2.81a
  2. Install & activate Bezier Tools
    (note there are 8 tools above the 2 Bezier tools)
  3. Go to File > New > Sculpting
  4. While in the Sculpt Template go from Sculpt Mode > Object Mode
    (note there are now 7 tools above the 2 Bezier tools - the Measure Tool has disappeared)
  5. Now go to File > New > General
    (note there are now only 6 tools above the 2 Bezier tools - both the Annotation & Measure Tools have disappeared)
  6. Uninstall Bezier Tools
    (note that the 2 tools are still missing)
  7. Close Blender & restart
    (note that these 2 tools behave now in a normal fashion when you use any template)

Notes:
A) This issue only occurs after Bezier Tools is installed
(blenderbezierutils.py downloaded on 07/01/20)
B) Bezier Tools is the only add-on that is installed / activated
C) It only involves the Annotate & Measure tools

My System:
OS: Windows 10 Pro v1909
Processor: AMD Ryzen 5 3600 6-core
RAM: 32 GB
Graphics Card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2/4.5.0 NVIDIA 441.66 (latest Studio driver)
Blender: Portable 2.81a

Thank you for your wonderful add-on, it will make working with curves much more pleasurable!

Flexi Grease pencil strokes don't get user radius

Not an issue, but more like a "missing feature" that is not too hard to implement I think.

I already left this suggestion as comment on your youtube video but I thought maybe opening this is better for you to track and I can develop the idea.

line_width prop take the radius of the user when drawing normal GP.

C.object.data.layers.active.active_frame.strokes[-1].line_width

Here it is set at default value 0.
I think it would be best to use current brush radius so the user can control the thickness of the generated stroke as if he was drawing normally.

it's a per brush size parameter.
C.scene.tool_settings.gpencil_paint.brush.size to reach the property.

I suppose it would be nice to display the built-in radius property in the toolbar to have a visual on the current value even in Flexi mode (and for user who dont use the F shortcut to change it)

Doing the same things for the strength can complete the arsenal (but stored at points level this time)
C.scene.tool_settings.gpencil_paint.brush.strength

Other than that everything is amazing ! 🚀
Thank you for coding and sharing this powerfull tool.

Samuel.

alpha transparency problem

Hi sorry to bother you , i use your addon a lot and there is a problem with guizmo alpha transparency in blender 2.91.
Is it possible to fix it ?
Thanks for your work, this is a great addon.

(I know it's coming from this addon because as soon as i disabled it, no more problem)

Sans titre

In Blender2.90, when I run "Mark Starting Vertices", it crashes.

In Blender2.90, when I run "Mark Starting Vertices", it crashes.
This is probably a problem caused by the specification change in 2.90, which changed the option name of the curve handle display.

old …… show_curve_handles
new …… display_handle

System info

version: 2.90.0, branch: master, commit date: 2020-08-31 11:26, hash: 0330d1af29c0, type: Release
build date: 2020-08-31, 10:00:13
platform: Windows
binary path: 'C:\Program Files\blender-2.90\blender290.exe'
build cflags: /W3 /w34062 /w34115 /w34189 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /wd4828 /wd4996 /wd4661 /we4013 /we4133 /we4431 /w35038 /DWIN32 /D_WINDOWS /W3 /nologo /J /Gd /MP /bigobj -openmp
build cxxflags: /W3 /w34062 /w34115 /w34189 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /wd4828 /wd4996 /wd4661 /we4013 /we4133 /we4431 /w35038 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /nologo /J /Gd /MP /EHsc /bigobj /permissive- /Zc:twoPhase- -openmp /std:c++17
build linkflags: /MACHINE:X64 /SUBSYSTEM:CONSOLE /STACK:2097152 /ignore:4049 /ignore:4217 /ignore:4221
build system: CMake

Error after pressing CTRL

I got an error after pressing the CTRL hotkey while creating some curves.

Original bug report : https://blenderartists.org/t/flexi-bezier-tool/1168179/377

Addon version : 0.9.85
Blender version : blender-2.83-9d90cad3ed39-windows64 & blender-2.83-11df5443e5d0-windows64

Capture

Traceback (most recent call last):
File “C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py”, line 4432, in modal
return self.subModal(context, event, evtCons)
File “C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py”, line 5253, in subModal
return self.baseSubModal(context, event, snapProc)
File “C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py”, line 5140, in baseSubModal
return self.drawObj.procDrawEvent(context, event, snapProc)
File “C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py”, line 4999, in procDrawEvent
loc = snapper.get3dLocSnap(rmInfo)
File “C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py”, line 3985, in get3dLocSnap
rounding = getViewDistRounding(rmInfo.space3d, rv3d)
File “C:\Users\Sebastien\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\blenderbezierutils.py”, line 520, in getViewDistRounding
return int(log(viewDist, getGridSubdiv(space3d))) - 1
ZeroDivisionError: float division by zero
location: :-1

Feature request

It is about increasing functionality not a Issue report: Please enable same feature like in grease pencil scroll wheel to adjust subdivision/resolution of the curve in 3d viewport, however i think you don't include maybe due to stability issue but please have an option to enable it. In archviz it is very helpful. In 3ds max, 80 percent of architectural modelling work is done is Spline why blender don't emphasize on improving curve functionality even in after effect animation curve is used heavily, simple operation like auto-smooth are not yet present. Boolean modifier will be great. Anyway if you find time then only work on it.

Buglet: The "display next to toolbar" option does not work as expected

The keymap appears in the left-side bottom corner of the screen. There is an option to shift this display next to the toolbar, but when I have folded the toolbar in two-column configuration, the text appears far from the toolbar.

image

In my case, I have changed the font size to 15, but even when I reset the preferences, the result is similar.

Locks on Flexi Grease

Not sure what's causing this, it seems to happen sporadically and I can't effectively reproduce it the same way every time.
issue_01
issue_02

Feature request: Offset curve (inset, outset)

Inspiration for this feature is from InkScape, where we can select a curve, and create another curve that is parallel to the existing curve, either inside ("inset") or outside ("outset"). The amount of offset can be selected with a slider, or spinner control ("dynamic offset").

While the offsetting in InkScape is 2D, it would have to be 3D in Blender. However, conceptually this should be possible by constraining different axes.

License issue

Hi Shriinivas.

As far as I know, you can't release your Flexi Draw Bezier Tool under the MIT license.
It has to be GPL (btw, all blender addons have to be released under the GPL license, not only yours).

https://www.blender.org/about/license/

2.90.1 Adjusting number of segments Freeze Error

It's such a Great Addon you are marvelous!
I got an error when I try to segment circles and polygons.

Blender Version: 2.90.1 (Mac OS)
Addon Version: 0.9.95

When I try to scroll my mouse and/or use the Numpad +/- to change the segment blender showed me an error message and the addon appears to be freeze and I couldn't do anything after that.

image

I don't know if I'm doing it wrong or it is just caused by some other issue.
Look forward to see some new cool ideas from it!

Error when blender is closing

When closing blender, I get an error:

File ".../blender/2.93/scripts/addons/blenderbezierutils.py", line 10171, in unregisterFlexiBezierKeymaps
    defaultmap = keyconfigs.get("blender").keymaps
AttributeError: 'NoneType' object has no attribute 'keymaps'

BGL to be discontinued in 3.7

Using bezierutils in 3.5 beta, and this error is coming up:
image

And this:
WARN (bgl): source/blender/python/generic/bgl.c:2656 BPyInit_bgl: 'bgl' imported without an OpenGL backend. Please update your add-ons to use the 'gpu' module. In Blender 3.7 'bgl' will be removed.

Everything still works if I use OpenGL instead of Metal.

Looked at the code a bit, and looks like bgl is only used for determining line width and point size, such as with bgl.glPointSize(MarkerController.defPointSize. Also read up that this may be the only way to change pointsize and line width, although I have to admit that the ability to change line width and point size as a custom preference never worked for me in the first place. I tried commenting out the bgl lines and no longer receive any errors, and everything seems to work as well as it did before.

Is there a way to change stroke styles when drawing using Flexi-Bezier curves?

I love this add-on; though I'm struggling to find a way to change the stroke/brush style while using the Flexi-Bezier Curves in Draw Mode. What I want is to be able to have the thick to thin fall-off at the ends of the lines; and perhaps lower strength as well as the thickness fades to thin. (Pretty Much what the standard Soft Pencil brush would do . . .)

I also would be interested to know if there is a way to edit these attributes after the fact; aside from 'Sculpt Mode'. I don't really like how the results in Sculpt Mode tend to be a little unnatural & forced most of the time. (If you are trying to make really clean and smooth line work . . .)

shortcut key

Hi. Thank you very much for your useful addon. Please insert a shortcut key like PgUp, PgOn for the middle mouse key. Thank you.

Feature request: When we want to draw a curve from a node of another curve, highlight the node

Suppose we want to draw a Bezier curve from another existing curve, either from an end-point or another node in the middle.
When I select the Draw Bezier tool and hover the pointer on the curve, none of the nodes on the old curve are highlighted,

Desired: We should be able to snap the starting point to any of the nodes of the older curve, and that should be visually indicated.

Moving along an axis

Thanks for a very useful add-on. I am looking for a way to do the axis-aligned movements on the level of Bezier nodes.

I see there is Z for lock to Z-axis, but it makes sure that the next point has the same X-Y coordinates as the previous point, whereas I would like to be able to keep my current point on the Z axis (with regular blender move it would be G-Z). Snap to grid does nearly what I want, but I want to be able to change the Z coordinate continuously.

Is there a way to achieve that with the add-on?

I need to keep the first and last points on the Z-axis, as I'm later rotating the curve around the axis to create a 3d mesh.

Unable to use the DEL button to delete anything in the bezier curve

I have 101 keys ("full") keyboard on my Acer Aspire laptop, with a NumPad at right.
The keyboard has the standard "US" layout (English).

I am using Blender 2.91 (downloaded 2 days ago), on Windows 10 Home edition, 64 bits.

If I use the DEL button located in the NumPad, nothing happens.

  • I tried toggling the NumLock button. No change.
  • I tried selecting different options (everything, curve object, segments, bezier points...). No change.

But the button on the top row of the keyboard, which is labeled Ins/DEL works fine.
Both buttons are shown in this figure:
image

The sample bezier curve is shown below (just to check if I am using the correct mode, selection, etc)
image

I dont succed to import addons

Hi, your addons is wonderfull. I used it in a other version.
In 3.0, I succeeded only after have modified le "bl_info" parameter
Thank for that addons

Flexi edit bezier not working correctly

First noticed when Set Handle Type/Select/Deselect pie menus not working. Used latest version with Blender 2.81a clean setup (no user addons). The system console window showed output below:

flexi edit click

In fact error output can occur on first click of flexi edit bezier button.
Error is marked as line 5709 updateaftergeomchange self.updatesnaplocs()

Change the W key to subdivide

In Flexi edit mode when i press W to subdivide the curve it shows the error" Trackball recent call...". Please change the W key for subvision to S or any you like. because W is the universal key to return to Select Box.

Does this work with 2.90.1?

I don't get an error when installing (see below), but it doesn't show up in the addons dialog.
Modules Installed () from '/Users/a4/Downloads/blenderbezierutils-master.zip' into '/Users/a4/Library/Application Support/Blender/2.90/scripts/addons'

OSX 10.157

Blender 2.92a segmentation fault when the bezierutils addon is enabled

In the latest Blender 2.92 Alpha build, with the latest (0.99.5) bezierutils addon enabled, when marking any object other than a collection as an asset using the new asset manager, blender crashes with a segmentation fault:

`Info: Data-block 'Cube' is now an asset

Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f1250a3f210]
#1 /lib/x86_64-linux-gnu/libGLdispatch.so.0(+0x4c049) [0x7f1250933049]
`
This behavior occurs only when the bezierutils addon is enabled, whereas when it is disabled, the asset operation proceeds normally without crashes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.