Hybrid View

  1. #1
    New Member User Gallery
    Join Date
    Oct 2004
    Posts
    27

    Default Fibermesh script for maya (slow but free)

    So, here there is my attempt to write a script for maya:
    fibermesh_to_curves.py

    Currently the main drawback in maya, is that every curve is a single item, so after a certain number the scene
    becomes slower.
    Anyway curves should be used as guides, not to be
    rendered as they are. In the next release (maybe tonight) I will add a
    control to generate only a certain percent amount of
    curves.

    TO USE IT:
    - copy the script in your script folder
    - in a shelf button, copy this code:

    import fibermesh_to_curves as ftc
    ftc.fibermesh_to_curves()

    It's not a plugin, so it's slow, but hey, it's free ;-)
    Last edited by Blu Ego; 01-30-12 at 07:42 AM.

  2. #2
    New Member User Gallery
    Join Date
    Oct 2004
    Posts
    27

    Default

    I just added the chance to specify a tolerance value.
    This value must be in the range (0..1), where 1 means that all the fiber curves will be generated


    So, if instead of writing:
    Code:
    import fibermesh_to_curves as ftc 
    ftc.fibermesh_to_curves()

    ...you write:
    Code:
    import fibermesh_to_curves as ftc 
    ftc.fibermesh_to_curves(0.5)

    ...then you will generate exactly half the curves.
    Of course it should be written in a python shelf (not mel)


    Next days i will write a mel interface, such that it will be easier to interact with this value

    I should also try to improve speed, and I have some ideas about it.

  3. #3
    New Member User Gallery
    Join Date
    Apr 2006
    Location
    USA
    Posts
    12

    Thumbs up Great to see This getting Started for maya

    I'm going to try this script out in next few days. I'll post some screen shots

  4. #4
    New Member User Gallery
    Join Date
    Oct 2004
    Posts
    27

    Default

    So, I updated the script.
    Be sure that the latest release you downloaded is V1.4 (open the script in a text editor and read the first row)

    Some users discovered that the script didn't work with goz (but it did with imported .obj)

    Now it finally works with goz and is 50-70% faster.

    To use it with a minimal gui, follow these steps:
    1) Copy the script in your scripts folder
    2) Copy this python code in a shelf button:
    Code:
    import fibermesh_to_curves as ftc 
    ftc.fibermesh_to_curves(guiMode=True)

Posting Permissions

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