Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 03-04-2010, 09:52 PM   #1
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default The PHAT- Python practice

Over the past 6 months I've been learning python and to learn a bit more I've started making a game. I'm hoping it will help me get into a good university (probably going to do computer science).
It's called the PHAT which stands for "The Phanteater army training (programme)". You play as a trainee anteater and the game is mostly a tutorial.
So far I've finished the basic movement and UI tutorial. My efforts to make an executable have so far been unsuccessful so I can't post anything that works but I can attach the code and screenshots. (Starts with menu.py)

Please tell me if I've done anything I shouldn't have or if there is a much better way to do something.

Menu:


Attached Files
File Type: zip thephat.zip (6.5 KB, 10 views)
elephantinc is offline   Reply With Quote
Old 04-04-2010, 12:31 AM   #2
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,371
Thanks: 74
Thanked 709 Times in 642 Posts
Default

Heh... captain placeholder eh?

I don't know how to make an exe either... I just run python scripts from the command line.
stwert is offline   Reply With Quote
Old 04-04-2010, 02:38 AM   #3
ben hobden
Subscriber
 
ben hobden's Avatar
 
Join Date: Jul 2008
Location: Chelmsford, Essex, UK
Posts: 1,162
Thanks: 13
Thanked 89 Times in 85 Posts
Default

how is python, as a language? is it fun to learn? i bought myself a book, a little while ago, which is learning python through making a game. i havnt had a go though yet.
ben hobden is offline   Reply With Quote
Old 04-04-2010, 05:42 AM   #4
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,371
Thanks: 74
Thanked 709 Times in 642 Posts
Default

Python for me has been a pretty good learning experience, mostly just messing around and reading documentation to try to achieve whatever goal I needed. I do bioinformatics, by the way, so most of the stuff I use it for is string based. I'm looking forward to using it with maya though.
stwert is offline   Reply With Quote
Old 04-04-2010, 12:01 PM   #5
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Originally posted by ben hobden
how is python, as a language? is it fun to learn? i bought myself a book, a little while ago, which is learning python through making a game. i havnt had a go though yet.
If you don't already know a programming language it's really good. It's probably the highest level (proper) programming language. It's very human readable.
It's easy to learn and it's used for pretty much everything. If you are serious about programming I think you need to learn another programming language afterwards but it's great to start off with.

As far as creating a .exe is concerned there is an application called py2exe that bundles in a python interpreter and all the appropriate modules but so far I haven't managed to get it working.

You can do anything with python: http://www.swharden.com/blog/images/python.png

Last edited by elephantinc : 04-04-2010 at 12:14 PM.
elephantinc is offline   Reply With Quote
Old 04-04-2010, 12:38 PM   #6
ben hobden
Subscriber
 
ben hobden's Avatar
 
Join Date: Jul 2008
Location: Chelmsford, Essex, UK
Posts: 1,162
Thanks: 13
Thanked 89 Times in 85 Posts
Default

Nooo, im not serious about programming. Just where ive been learning maya,ive always heard of it, and then i was using after effects the other day and i saw you could use it in that. I read that stuff about it being easy and most human like. With visuals and pretty colours too i thought you cant go wrong!
ben hobden is offline   Reply With Quote
Old 04-04-2010, 12:59 PM   #7
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Originally posted by ben hobden
Nooo, im not serious about programming. Just where ive been learning maya,ive always heard of it, and then i was using after effects the other day and i saw you could use it in that. I read that stuff about it being easy and most human like. With visuals and pretty colours too i thought you cant go wrong!
Go for it then. You always get helpful error messages too.
elephantinc is offline   Reply With Quote
Old 04-04-2010, 08:11 PM   #8
ctbram
Moderator
 
ctbram's Avatar
 
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,995
Thanks: 42
Thanked 582 Times in 532 Posts
Default

Good luck with a degree in computer science.

It's like having a degree in pre-unemployment.
__________________
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675

Last edited by ctbram : 04-04-2010 at 08:15 PM.
ctbram is offline   Reply With Quote
Old 04-04-2010, 08:39 PM   #9
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Originally posted by ctbram
Good luck with a degree in computer science.

It's like having a degree in pre-unemployment.
errr Thanks?
The number of people in england taking Comp Sci courses has dropped dramatically so I can hope.......
elephantinc is offline   Reply With Quote
Old 04-04-2010, 08:54 PM   #10
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,371
Thanks: 74
Thanked 709 Times in 642 Posts
Default

Don't listen to ctbram, comp sci has applications in a huge diversity of fields. I went to a career fair at my university and many of the companies were looking for comp sci grads... much more than biology
stwert is offline   Reply With Quote
Old 04-04-2010, 09:05 PM   #11
ctbram
Moderator
 
ctbram's Avatar
 
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,995
Thanks: 42
Thanked 582 Times in 532 Posts
Default

I was just teasing.

I have a B.S. in computer science and electrical engineering as well as a masters in aeronautical engineering and just completed a PhD in medical physics (biotech).

Much of what I did when I was doing my research involves computational analysis and utilized a great deal of my experience with programming.

I should have put more then just the smiley winky emoticon. Truly, wish you the best with your CS degree.
__________________
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675
ctbram is offline   Reply With Quote
Old 04-04-2010, 10:10 PM   #12
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,371
Thanks: 74
Thanked 709 Times in 642 Posts
Default

Haha, I must have missed the winky... next time do something like...

JK!!!!! LOL!!!! :attn: :bow: :p :p :p ROFL!!! CSC Roxors ur boxxors...!!!!:p :p
stwert is offline   Reply With Quote
Old 05-04-2010, 12:25 AM   #13
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Originally posted by ctbram
I was just teasing.

I have a B.S. in computer science and electrical engineering as well as a masters in aeronautical engineering and just completed a PhD in medical physics (biotech).

Much of what I did when I was doing my research involves computational analysis and utilized a great deal of my experience with programming.

I should have put more then just the smiley winky emoticon. Truly, wish you the best with your CS degree.
Thanks
It does still have the 5th highest post graduate unemployment rating though, at somewhere in the 20% region.
Still, the universities I hope to get in to have much higher post graduate employment ratings, some of which are 100% (although how many of them ended up working in Mcdonalds is anyones guess)
elephantinc is offline   Reply With Quote
Old 05-04-2010, 12:16 PM   #14
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Good luck with the Python.

I've only toyed with it. More of a C, Matlab, MEL and C# guy.

The first year of the degree will be a leveler to get everyone up to speed.

What uni's are you thinking about?

Steve
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 05-04-2010, 04:26 PM   #15
Mayaniac
As Zbrushiac sounds stupid!
 
Mayaniac's Avatar
 
Join Date: Nov 2007
Location: Derby
Posts: 1,241
Thanks: 23
Thanked 33 Times in 30 Posts
Default

Yeah, should be fun. I spent awhile learning C# then some XNA... wasn't really my thing tbh, but haven't tried Python, so can't give you any cits/advice.

Good luck with it all though.
__________________
www.stevenegan-cgi.com

"Your weapons are no match for ours! People of Mars, surrender!"
"Um, this isn't Mars. This is Earth."
"Earth? Earth-with-nuclear-weapons Earth?"
"Yes."
[long pause] "Friend!!"
Mayaniac is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.