Adverti horiz upsell

Create dynamic chain from curve 2.0.4 for Maya (maya script)

Generate chains from selected curves, ready for animation and very fast (but realistic) dynamic simulation.

License
Button download
11,329 Downloads

Compatibility

  • 2014, 2013, 2012, 2011

Operating Systems

  • Irix
  • Linux
  • Mac
  • Solaris
  • Windows

History

Created:09/22/2011
Last Modified:06/01/2013
File Size: 19.4 KB

Q/A

# Error: ImportError: cannot import name startfile #

Date:02/05/2013
Submitted by: ekenryd ekenryd
This is the error I get when I run

from chainCreator import *
chainCreator()

from a python-tab. I have put chainCreator.pyc into my script folder.

Maya 2012, linux. Any idea of why it is not working? Thanks

Replies to this question:

  • Valerio Di Napoli

    Valerio Di Napoli said almost 12 years ago:

    Hello ekenryd, thanks to your post I discovered that the python command "os.startfile" (that I used for some operations) works only with Windows. There is a discussion of python community about this: https://bugs.python.org/issue3177 I've just provided to modify the script to avoid this issue: ChainCreator 2.0.3 checks what OS is running and uses alternative commands for operating systems different from Windows. Can you please re-download it and let me know if it works this time? In any case, I must thank you because you made me learn something new! :)
  • Replyindent
    ekenryd

    ekenryd said almost 12 years ago:

    It works very well now! Glad you learned something, and thanks for a great script :) If you ever plan to expand the feature list, one thing that would be nice is to have the option to pick your own mesh for the rings in the generation process. Anyhow, thanks again :)

Post a reply: