Git Product home page Git Product logo

Comments (10)

BenjaminSauder avatar BenjaminSauder commented on September 6, 2024

mhh interessting - I think the problem might be that I assume this is always called via invoke first, while it appears that if its called via the api it directely calls execute... just a first guess tho.

gotta read into this topic again.

from edgeflow.

Neltulz avatar Neltulz commented on September 6, 2024

mhh interessting - I think the problem might be that I assume this is always called via invoke first, while it appears that if its called via the api it directely calls execute... just a first guess tho.

gotta read into this topic again.

Hi, thanks for your quick response! :)

I believe I have a solution, thanks to a very helpful person in the Blender Discord #help-coding channel. If you open the op_set_edge_flow.py file, and scroll down to line 109, you have self.tension, self.iterations, and self.bias specified there. Simply commenting out or removing these 3 lines allows me to use the command like this:

bpy.ops.mesh.set_edge_flow("INVOKE_DEFAULT", tension=180, iterations=32)

If you could remove those 3 lines, and release an update to the edge flow addon, I would be able to use your addon with my addon. :)

from edgeflow.

BenjaminSauder avatar BenjaminSauder commented on September 6, 2024

well - these lines are intentionally added. It makes sure that the opertor always starts with the default values. As I found it not usefull that blender remembers what values where used the last time the operator is run - well at least in this case, often this behaviour is desired. Maybe there is a side effect free alternative..

from edgeflow.

BenjaminSauder avatar BenjaminSauder commented on September 6, 2024

I changed some stuff to allow for a bpy.ops call you can give it a try.

from edgeflow.

Neltulz avatar Neltulz commented on September 6, 2024

Hi, thanks for the update! I have downloaded the files, and installed the addon.

I'm trying to run this command:
bpy.ops.mesh.set_edge_flow(tension=scene.neltulzSubDEdge.tension, iterations=scene.neltulzSubDEdge.numIterations, min_angle=scene.neltulzSubDEdge.minAngle)

The parameters are being set by my custom property group. It doesn't appear to be working.

Here's my addon's panel:
2019-08-17_00-32-25

Before:
2019-08-17_00-31-08

After:
2019-08-17_00-31-50

It doesn't appear to be accepting my variables. I printed my variables to console to confirm they are being set properly, so, I'm not really 100% sure why it's not working.

If you would like to experiment on your end, you can simply use a "loop cut" to insert (for example) 8 edge loops, then while those edge loops are still selected, run the bpy.ops.mesh.set_edge_flow..... command with some parameters.

from edgeflow.

BenjaminSauder avatar BenjaminSauder commented on September 6, 2024

hey, it was a bit late when i pushed the last version, so I missed something obvious. So please retry the newest version..

from edgeflow.

Neltulz avatar Neltulz commented on September 6, 2024

Awesome! Everything seems to be working great! If you could push this as a release, I would be able to instruct others to download the latest version of EdgeFlow before using my Addon from the Release section of this github repo! :)

Thank you for updating the addon with these bug fixes. My only request for the future would be to keep the same property names, and addon operator name so that future versions of EdgeFlow do not break my addon. I will be sure to credit you with my addon as well! :)

from edgeflow.

BenjaminSauder avatar BenjaminSauder commented on September 6, 2024

The last release with tag 04 (https://github.com/BenjaminSauder/EdgeFlow/releases) should already be up to date.

from edgeflow.

Neltulz avatar Neltulz commented on September 6, 2024

Oh, okay. I misread the Github page. Thanks! You may close this issue now!

from edgeflow.

BenjaminSauder avatar BenjaminSauder commented on September 6, 2024

done :)

from edgeflow.

Related Issues (20)

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.