Page 1 of 3 123 LastLast
Results 1 to 20 of 60
  1. #1
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288

    [ADDON] Curve Converter

    This is a short script that I created in response to a blender.stackexchange.com question. What it allows you to do is convert the curve to a mesh object and apply that data to a mesh object, without loosing the original curve. You can then update the curve and by clicking "Update Mesh" all that new data is applied to the mesh object. Here is how it works:

    1. Add a curve and make the bevel "Full", add depth and resolution
    2. Add a mesh object like a cube, or click "Add Mesh Object" under panel in toolbar
    3. Go to View 3D > Tools > Tools > Curve Conversion
    4. Select curve object
    5. Click "Update Mesh"

    and there you go, you now have the curve's mesh equivalent. You can edit the curve as much as you would like and then just click "Update Mesh". The "Respect Scale" option copies the scale from the curve to the mesh object. This way if you change the scale on the curve that scale is applied as well to the mesh object.

    ##Update 0.7##
    Materials no longer disappear on updating and are transferred correctly.

    ##Update 0.8##
    Copied the changes that JuhaW did into the main version. You can now Propagate Changes while in curve edit-mode.

    Download Link
    Donate
    Last edited by Jacob Morris; 07-Feb-16 at 16:15. Reason: updated script



  2. #2
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,198
    Thks Jacob, I search about what to use it but interesting!
    Words are Images that loosed Light!
    Linux Mint 18.1 Serena Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



  3. #3
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Spirou4D View Post
    Thks Jacob, I search about what to use it but interesting!
    It is mainly meant for when you are using modifiers on curves, like a boolean modifier. If you need to change your curve, you would normally have to go back the curve. Edit it, convert it back to a mesh, then add the modifier again. This bypasses all that. Also, just check out the question that I linked to in my first post. That goes over the main reason.
    Last edited by Jacob Morris; 29-Oct-14 at 09:11. Reason: added more info



  4. #4
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,198
    Ok Jacob, I go to the question on stackexchange.com.
    Thks for the explanations, I understand now.
    Good idea!


    EDIT: Yes I have had this kind of problem and now your work respond absolutely to the question! Thks
    Last edited by Spirou4D; 29-Oct-14 at 13:39.
    Words are Images that loosed Light!
    Linux Mint 18.1 Serena Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



  5. #5
    Member
    Join Date
    Mar 2002
    Location
    California
    Posts
    2,091
    I just downloaded this. But have not tried it yet. Does anyone know if it is good for making hair meshes from curves. Because trying to turn blender's particle hair into a mesh for export to other programs is tedious at best.
    At some point in life you stop being the man you are and start being the man you always wanted to be. ------ Bruce Springsteen.



  6. #6
    Member eppo's Avatar
    Join Date
    Jul 2011
    Location
    Jurmala, Latvia
    Posts
    5,310
    @SHABA1 Have you seen this one? I was curious enough to check it - works as advertised.



  7. #7
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by SHABA1 View Post
    I just downloaded this. But have not tried it yet. Does anyone know if it is good for making hair meshes from curves. Because trying to turn blender's particle hair into a mesh for export to other programs is tedious at best.
    It currently won't do that, as it is confined to objects whose type is "CURVE", but I will look into what it would require to change that. I doubt it would be to hard.



  8. #8
    Member
    Join Date
    Mar 2002
    Location
    California
    Posts
    2,091
    Originally Posted by eppo View Post
    @SHABA1 Have you seen this one? I was curious enough to check it - works as advertised.
    I looked at it but it looks like both the addon and the instructions are in japaneses so it would be useless to me.
    At some point in life you stop being the man you are and start being the man you always wanted to be. ------ Bruce Springsteen.



  9. #9
    Member
    Join Date
    Dec 2005
    Location
    Gbg, Sweden
    Posts
    102
    A truly elegant solution which opens the door to bezier boolean modeling, amazing!

    However, I do need to perform "Remove doubles" every time I press "Update mesh". Since the vertices aren't joined, the following booleans will not work as expected. Even ALT-C suffers this fault.

    Another improvement would be choosing the curve from a list of objects instead of having to write the name of the curve manually (which could lead to misspelling).

    Checkout the following for removing doubles: http://blenderartists.org/forum/show...Doubles-script

    And the following for an object selection list: http://blenderartists.org/forum/show...of-Blender-2-5



  10. #10
    Member
    Join Date
    Dec 2005
    Location
    Gbg, Sweden
    Posts
    102
    Originally Posted by swebal View Post
    A truly elegant solution which opens the door to bezier boolean modeling, amazing!

    However, I do need to perform "Remove doubles" every time I press "Update mesh". Since the vertices aren't joined, the following booleans will not work as expected. Even ALT-C suffers this fault.
    FIX by adding the following code after line #36 (tested in Blender 2.71):

    Code:
    bpy.ops.object.mode_set(mode='EDIT', toggle=False)
    bpy.ops.mesh.select_all(action='SELECT')
    bpy.ops.mesh.remove_doubles(threshold=0.0001)
    bpy.ops.object.mode_set()



  11. #11
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by swebal View Post
    FIX by adding the following code after line #36 (tested in Blender 2.71):

    Code:
    bpy.ops.object.mode_set(mode='EDIT', toggle=False)
    bpy.ops.mesh.select_all(action='SELECT')
    bpy.ops.mesh.remove_doubles(threshold=0.0001)
    bpy.ops.object.mode_set()
    Thanks for the suggestions and code, I added it all in plus I made it recalculate the normals. I also added in a dedicated button to add a cube when the curve it selected. The link has been updated



  12. #12
    Member
    Join Date
    Dec 2005
    Location
    Gbg, Sweden
    Posts
    102
    Originally Posted by Jacob Morris View Post
    Thanks for the suggestions and code, I added it all in plus I made it recalculate the normals. I also added in a dedicated button to add a cube when the curve it selected. The link has been updated
    Very cool! The add-mesh from curve thing is a really good idea, but I think it should be "Add mesh copy" (with a reference to the active curve object), do you agree? Also, the object selection list when a mesh object is active should (reasonably) only contain curve objects, since only they are relevant.

    This is so smooth (with the 2-way thing added), you should submit it for inclusion in the Blender trunk.
    Last edited by swebal; 05-Jan-15 at 08:14.



  13. #13
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by swebal View Post
    Very cool! The add-mesh from curve thing is a really good idea, but I think it should be "Add mesh copy" (with a reference to the active curve object), do you agree? Also, the object selection list when a mesh object is active should (reasonably) only contain curve objects, since only they are relevant.

    This is so smooth (with the 2-way thing added), you should submit it for inclusion in the Blender trunk.
    Thanks again for all the suggestions! You have been making me think and I am going to work on a pretty major overhaul. I will hopefully have it up in the next day. This will fix all the current issues and add some more features.



  14. #14
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,198
    Warning: orthograph mistake on" version": versoin -> version
    Words are Images that loosed Light!
    Linux Mint 18.1 Serena Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



  15. #15
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Spirou4D View Post
    Warning: orthograph mistake on" version": versoin -> version
    Is this a warning you are getting? If so when?



  16. #16
    Member
    Join Date
    Dec 2005
    Location
    Gbg, Sweden
    Posts
    102
    Originally Posted by Jacob Morris View Post
    Thanks again for all the suggestions! You have been making me think and I am going to work on a pretty major overhaul. I will hopefully have it up in the next day. This will fix all the current issues and add some more features.
    Looking forward to it!



  17. #17
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,198
    Then you have found it? In the :
    bl_info = {
    "name" : "Curve Conversion",
    "description" : "Converts Curve To Mesh To Allow Updating Of Mesh",
    "author" : "Jacob Morris",
    "blender" : (2, 72, 0),
    "location" : "Properties > Modifiers > Curve Conversion",
    "version" : (0, 2),
    "category" : "Object"
    }
    Words are Images that loosed Light!
    Linux Mint 18.1 Serena Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



  18. #18
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by Spirou4D View Post
    Then you have found it? In the :
    bl_info = {
    "name" : "Curve Conversion",
    "description" : "Converts Curve To Mesh To Allow Updating Of Mesh",
    "author" : "Jacob Morris",
    "blender" : (2, 72, 0),
    "location" : "Properties > Modifiers > Curve Conversion",
    "version" : (0, 2),
    "category" : "Object"
    }
    No, I didn't find it. Could you specify when you are getting it?



  19. #19
    Member
    Join Date
    Apr 2012
    Location
    Pennsylvania, USA
    Posts
    288
    Originally Posted by swebal View Post
    Looking forward to it!
    New version up, still haven't figured out how to limit results to just curves, but I will keep looking.



  20. #20
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,198
    Download your file here at the first message and you can see then!

    "bl_info = { "name" : "Curve Conversion",
    "description" : "Converts Curve To Mesh To Allow Updating Of Mesh",
    "author" : "Jacob Morris",
    "blender" : (2, 72, 0),
    "location" : "View 3D > Tools > Tools > Curve Conversion",


    "versoin" : (0, 3),


    "category" : "Object"
    }
    "
    Words are Images that loosed Light!
    Linux Mint 18.1 Serena Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •