BrendanParmer / NodeToPython

Convert Blender node groups to a Python add-on
MIT License
236 stars 21 forks source link

Float curves seem to have double values at 0 and 1. #41

Closed Talvara closed 1 year ago

Talvara commented 1 year ago

It looks like the initial values on a curve do not get removed when new values are added. blender_YeeeSKDPTv Above, How the curves are in the geometry nodes. Below, How the curves are when using the addon created for these geometry nodes. blender_FE1TRLgPSR

Ran into this when trying out the plugin on this fantasy tree by RC12 https://rc12.gumroad.com/l/fantasytree

Reprosteps:

  1. get the .blend file from the gumroad linked above.
  2. use the 'NodeToPython' addon on the tree object in the scene.
  3. Install and activate the newly created 'Fantasy tree' Addon.
  4. add a cube to the scene.
  5. use "bpy.ops.object.fantasy_tree()" on the cube.
  6. Inspect the curves in the newly created tree and compare them to the curves of the original.
BrendanParmer commented 1 year ago

Same issue was occurring with color ramps, as well, thanks for the report!