Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Loading Python script on a Mac?
  RSS 2.0 ATOM  

Loading Python script on a Mac?
Rate this thread
 
63144
 
Permlink of this thread  
avatar
  • mtcgs
  • Posted: 28 December 2011 07:09 AM
  • Location: USA
  • Total Posts: 108
  • Joined: 22 August 2006 09:20 AM

I found a cool free little script for creating a dynamic chain in Maya called “Create Dynamic Chain From Curve 1.2.1”. However, it’s a Python script and I’m just not familiar enough with Python to be able to get it to work. I’m not a scripts guy. I’m kind of ok with MEL, but Python ... not so much. Can anyone walk me through getting this script to function on my Mac? Feel free to treat me like a 6 year old since my adventures into Python have pretty much knocked me down to about that level anyway (apologies to all you Python writing 6 year olds). A step-by step outline would be great.
Thanks in advance to anyone who would waste time on this.



mtcgs

Replies: 0
avatar
  • n8skow
  • Posted: 03 January 2012 01:30 AM

Same as with MEL, you have to source it first, and then execute it (per the “How to use.txt"):

from chainCreator import *
chainCreator()

However, I downloaded the script from CreativeCrash - and it appears to be corrupted, bunch of gibberish in the file… Did you happen to download it from a different source?



n8skow [FA]

Replies: 0
avatar
  • ldunham1
  • Posted: 03 January 2012 02:29 AM

as long as chainCreator.pyc is in your scripts folder then

from chainCreator import *
chainCreator()

should work fine.

n8skow -
Thats because its the .pyc file :)



Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 1
/userdata/avatar/5e2c402t2.jpg

ahhh
fairly Python ignorant myself =)

Author: n8skow

Replied: 03 January 2012 04:09 AM  
avatar
  • ldunham1
  • Posted: 03 January 2012 04:27 AM

haha no worries.
I definitely recommend a good look-in, very powerful when used right :)
i couldn’t do without nested dictionaries and list comprehension now!



Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 0