Adverti horiz upsell

as_polyFracture 0.5.8 for Maya (maya script)

polygonal shatter based on 3D voronoi algorithm

License
Button download
9,771 Downloads

Compatibility

  • 2018, 2017, 2010, 2009

Operating Systems

  • Irix
  • Linux
  • Mac
  • Solaris
  • Windows

History

Created:03/10/2010
Last Modified:05/23/2019
File Size: 28.7 KB

Keywords

fracture, voronoi

Q/A

questions ?!?

Date:03/13/2010
Submitted by: Alin Sfetcu Alin Sfetcu

if you have any questions about this script ... let`s hear them.

 

have fun,

Alin

Replies to this question:

  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 11 years ago:

    - what maya version ? - do you get any error message ? (check script editor)
  • Replyindent
    brummer

    brummer said over 11 years ago:

    Hey! I select all the locators remaining inside my shatterable object, i run the script, and it just creates the same cube without shattering it. Log says: Cutting pCube2 in 1 pieces took 0.02 s to complete.
  • Replyindent
    manish MAKHIJA

    manish MAKHIJA said almost 14 years ago:

    nevermind i dint scroll all the way down figured dat it was supposed to be pasted in a python tab not mel tab....thx frm makin this script man!!! hats off!!
  • Replyindent
    manish MAKHIJA

    manish MAKHIJA said almost 14 years ago:

    hey im new to scripts and im geting this error when i click the shelf button ive pasted the script in documents/maya/2011/scripts/ , autodesk/maya 2011/scripts/ and autodesk/maya 2011/bin/scripts/ all the places possible. my os is windows 7 ultimate 64 bit. can you please help me out? // Error: reload(pf) // // Error: Invalid use of Maya object "pf". //
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    It seems Maya is unable to find the script file. Make sure you copy the .py file from archive into your MAYA_SCRIPT_PATH (e.g. ..\maya\2010\scripts)
  • Replyindent
    glsls

    glsls said over 14 years ago:

    Hi, bit of a newbie questions for you, but here goes. Followed instructions as above, however when I click the button I get the following error message : import as_polyFracture as pf reload(pf) pf.pub_polyVoronoi()# Error: ImportError: No module named as_polyFracture # I'm running Maya 2010, on Mac OSX 10.5.8 Thanks for any help.
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    can you quote for me the error message, i can`t read the text on that screenshot. to do the "clean" step you have to select the locators in the viewport and then the object
  • Replyindent
    neelytc

    neelytc said over 14 years ago:

    I think I have gotten through the spawn step successfully but when I hit clean I receive an error message. Any ideas on where I've gone wrong?
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    ignore the video ... it`s just for presentation and it`s made using a earlier version of the script which didn`t have a UI. instead follow the steps outlined in script interface.
  • Replyindent
    neelytc

    neelytc said over 14 years ago:

    That did it! very interesting. I can't seem to get the video to come in very clear or with audio to follow the instructions on how to use it. I have made a box...then I hit place and the pink circle appears which I assume is the particle. Then I hit play and the small pink dots appear...then I select the particle and hit spawn and nothing happens. Then when I hit clean I get an error message. Thanks for the help! any recommendations on books to start learning architecturally minded scripting?
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    Installation: --------------- - copy script file (.py) from the .rar file in your ..\maya\scripts - open Maya - open Script Editor - paste the following lines of code in a Python tab import as_polyFracture as pf reload(pf) pf.pub_polyVoronoi() - select those lines of code and using middle-button click and drag the text to shelf - click that newly created button ... tada ... :)
  • Replyindent
    neelytc

    neelytc said over 14 years ago:

    I'm new to scripts in maya. think you could be more explicit about loading process? Thanks
  • Joojaa

    Joojaa said over 14 years ago:

    Can I change this a bit and share the result with a third party. See what they need is a way to make a boundary surface for a point cloud where some points are included in the datacloud and some are not part of the data sort of like the shatter but with missing pieces and missing the walls between points that have same value. If not its not a biggie the Voronoi is easy enough to implement but id just like to pass the idea off to others and this would suit my purposes as a platform with most of the rough work done. No hurry tough not even sure it will go as far as test. Thing is tough i would gladly branch the changes back since it could be sueful for some purpose. I know atleast some architects whant this kind of stuff.
  • Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    yes, you can, but i have 2 requests: 1st credit me if you use my code and 2nd release the modified sources, maybe somebody else will find it useful. have fun, alin
  • Joojaa

    Joojaa said over 14 years ago:

    Thanks >> 1st credit me yes off course what kind of inconsiderate bastard do you take me for. Oh, wait no I take that back :) >> 2nd release the modified sources Will do.
  • Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    great ... have fun ... if you have questions about the inner works let me know
  • nelson da costa

    nelson da costa said over 14 years ago:

    im running maya 2011 and i have same probeme and when i press second buton courser turns to hourglass and doesnt go away an if i countinue to step 3 when i hit button maya totaly shuts down any idea what to do when i use
  • Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    new version online (v0.4) tested in both Maya 2010 x64 and Maya 2011 x64
  • abdullah alshalan

    abdullah alshalan said over 14 years ago:

    Maya 2011 32bit crashed in step 3
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    [quote=abdullah-alshalan]Maya 2011 32bit crashed in step 3[/quote] the script is not working all the time on some systems with Maya 2011.
  • task0918

    task0918 said over 14 years ago:

    i crash step3 in MAYA2011x64 , MAYA2010x64 is OK ver.0.4.
  • s2onload

    s2onload said over 14 years ago:

    hi can you help me, i'm use maya 2009 on winxp 32bit i copy as_polyFracture.py > C:\My Documents\maya\scripts and type import as_polyFracture as pf reload(pf) pf.pub_polyVoronoi() in script editor then i execute // Error: reload(pf) // // Error: Invalid use of Maya object "pf". // please help. Thank you. Sorry i'm bad english.
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    execute that code in a Python tab :)
  • s2onload

    s2onload said over 14 years ago:

    thank you man. :D
  • evaldas cesnavicius

    evaldas cesnavicius said over 14 years ago:

    ou noooo... crashing 2011 64 all the time =/
  • Replyindent
    berilac

    berilac said about 14 years ago:

    Thanks for the excellent work; just wish I could use it. I am having this issue/crash with 2011 (x64). However, when restarting maya, the problem simply repeats itself... Any ideas??? I would really love to get this working, as it seems to me to be the best free script that does voronoi! Hope you can help...
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 14 years ago:

    the script fails at step 3 under Maya 2011 (x86 and x64) resulting in Maya crash. This is happening ONLY the first time it is run (per windows session) ... just open Maya again and should work as expected. I get the same behavior on all my machines and until now i didn`t manage to find out why this is happending or how to prevent it!
  • Lutfij

    Lutfij said about 14 years ago:

    hey there , sanctuary! been following up on your work and they look splendid...plus theres a UI for the voronoi instead of all that script writing :) but bro, i'm having issues with this script...i keep getting an error message " # Error: RuntimeError: Maximum value must be greater than minimum value. " where am i going wrong? I'm new to maya heres my PC setup: Asus Rampage extreme Q9550 OCZ 4GB DDR3 1333 Windows 7 x64 Maya 2011 x64 i'm trying to use your script for an idea i had for a highrise :) please help bro !
  • Lutfij

    Lutfij said about 14 years ago:

    i've managed to get past the error..now i get an error : # Error: RuntimeError: Error occurred during execution of MEL script line 1: Error while parsing arguments. I made the python tab in the shelf and i drew up a cube like your video illustrated. and the UI comes up. in the 3rd process where i have to clean after selecting the locater's and the object i get an error message displayed - (above) please help me out :S
  • florian.einfalt

    florian.einfalt said almost 14 years ago:

    hi. that is great work there. my problem is that i get this error # Error: IndentationError: unexpected indent # when trying to use the script in Maya 2011 on MacOS X Can you help me make it work again? Thanks. Cheers, Flo
  • Replyindent
    Jacob Rocereto

    Jacob Rocereto said over 11 years ago:

    check the script you copied into the shelf editor it probably looks like: ########### $$$$$$$$$$$$$ &&&&&&&&&&& it should look like: ################# $$$$$$$$$$$$$$$ &&&&&&&&&&
  • manish MAKHIJA

    manish MAKHIJA said almost 14 years ago:

    im getting an appcrash and maya is crashing wen i hit clean and if theres no appcrash there a fatal error. Problem Event Name: APPCRASH Application Name: maya.exe Application Version: 2010.9.6.330 Application Timestamp: 4c84b286 Fault Module Name: ntdll.dll Fault Module Version: 6.1.7600.16385 Fault Module Timestamp: 4a5be02b Exception Code: c0000005 Exception Offset: 0000000000029328 OS Version: 6.1.7600.2.0.0.256.1 Locale ID: 16393 Additional Information 1: 3e2a Additional Information 2: 3e2a2d426216b5720ec41b776a06b147 Additional Information 3: da01 Additional Information 4: da016954c1c0fce2bb5b4201e062dd30
  • Alin Sfetcu

    Alin Sfetcu said almost 14 years ago:

    guys ... the script fails at step 3 under Maya 2011 (x86 and x64) resulting in Maya crash. I get the same behavior on all my machines and until now i didn`t manage to find out why this is happending or how to prevent it!
  • aila

    aila said almost 13 years ago:

    hi this script looks awesome man. I really want to try it, but honestly i've been trying to install it for a while now and I can't seem to figure out how to. I'm on a mac OS X running maya 2012 x64. it might just be me since i've never installed a python script but I really don't see how to resolve this issue. I've tried putting the .py file in every possible folder but it always gives me this error: # Error: ImportError: No module named as_polyFracture # Is anybody using this script on a mac? thanks for your help. Arthur
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said almost 13 years ago:

    i don`t have experience with MacOS so i can`t help you with that information. There is nothing special about the script so it should work if placed in the same folder as all your other scripts.
  • accesskb

    accesskb said over 12 years ago:

    Hi Alin, Thank you for sharing this amazing script. I was wondering if this script could be modified to work for an organic form or forms like a sphere or torus? It would be amazing if that is possible.
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 12 years ago:

    you can use any shape you want, i have used a generic cube just for demo. P.S. avoid concave objects like cups, glasses etc
  • dumora philippe

    dumora philippe said over 11 years ago:

    Hi, I have a message: # Error: RuntimeError: Object 'polySurfaceShape1' not found. # I've clean my object but... An idea?
  • Replyindent
    dumora philippe

    dumora philippe said over 11 years ago:

    ... when i redo my operation one mysecond rock, with a rename of the shape before making the plug... but a new error: select -add parenthese_Gauche_03_p_Shape151 ; # Error: TypeError: file C:/Users/ordi/Documents/maya/scripts\as_polyFracture.py line 522: 'NoneType' object is not iterable #
  • Replyindent
    dumora philippe

    dumora philippe said over 11 years ago:

    yes,!! history was uncheked xD.. after there are some prob but you'r all right because all of my solid was depliqued whit the same shape... SO Thank you very well
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 11 years ago:

    in Script Editor > History > Line numbers in errors make sure is checked and then send me the output so i can figure out where is the problem.
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 11 years ago:

    make sure there is no other object with that shape name in your scene
  • Replyindent
    dumora philippe

    dumora philippe said over 11 years ago:

    And an an other message who say: # Error: TypeError: 'NoneType' object is not iterable #
  • jumperado

    jumperado said over 11 years ago:

    hi Alin, I had a quick look through the questions before, but haven't found one with the same error message. when I want to do Step 2 I always get the error: /OpenMaya.py line 3314: in method 'new_MFloatVector', argument 1 of type 'float' # and afterwards there is only one locator in the coordinate origin. do you know what I m doing wrong? Thanks for response! and thanks for script! cheers Daniel
  • Replyindent
    yuval gofer

    yuval gofer said almost 11 years ago:

    hi thare i'm using maya 2013 and having this issue: # Error: NotImplementedError: Wrong number or type of arguments for overloaded function 'new_MFloatVector'. Possible C/C++ prototypes are: MFloatVector() MFloatVector(MFloatPoint const &) MFloatVector(MFloatVector const &) MFloatVector(MVector const &) MFloatVector(MPoint const &) MFloatVector(float,float,float) MFloatVector(float const [3]) # happend every time i select the particle and hit the buttom need help
  • Replyindent
    Jacob Rocereto

    Jacob Rocereto said over 11 years ago:

    I'm having the same problem. Running 2013 x64
  • Replyindent
    Alin Sfetcu

    Alin Sfetcu said over 11 years ago:

    what version of Maya are you using ?

Post a reply: