Book

67 views
Skip to first unread message

Adam Mechtley

unread,
Oct 12, 2011, 12:43:08 PM10/12/11
to python_in...@googlegroups.com
Hey folks,

For those interested, Ryan and I finally wrapped up our book and (not that anyone is keeping me in the loop on release dates) it's available on Kindle now, hardcover later this week. Many thanks to Seth Gibson and Kristine Middlemiss for contributing chapters, and to Dean Edmonds for technical editing assistance. If you're curious, you can also check out the companion web site at http://www.maya-python.com/

I mostly wanted to post here to ask that, if anyone on this list happens to pick up a copy, please do get in touch with me regarding any errors you find! It turns out writing a book is really hard, so I'm sure there were plenty of things that made it in under the radar in the final crunch ;) I just want to make sure we have an opportunity to fix as many issues as possible for the second printing. Thanks!

Sahak Sahakian

unread,
Oct 12, 2011, 12:45:32 PM10/12/11
to python_in...@googlegroups.com
On Wednesday, October 12, 2011 6:43:08 PM, Adam Mechtley wrote:
> Hey folks,
>
> For those interested, Ryan and I finally wrapped up our book and (not
> that anyone is keeping me in the loop on release dates) it's available
> on Kindle now, hardcover later this week
> <http://www.amazon.com/Maya-Python-Games-Film-Reference/dp/0123785782/ref=sr_1_1?ie=UTF8&qid=1318437212&sr=8-1>.
> Many thanks to Seth Gibson and Kristine Middlemiss for contributing
> chapters, and to Dean Edmonds for technical editing assistance. If
> you're curious, you can also check out the companion web site at
> http://www.maya-python.com/
>
> I mostly wanted to post here to ask that, if anyone on this list
> happens to pick up a copy, please do get in touch with me regarding
> any errors you find! It turns out writing a book is really hard, so
> I'm sure there were plenty of things that made it in under the radar
> in the final crunch ;) I just want to make sure we have an opportunity
> to fix as many issues as possible for the second printing. Thanks!
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe

Hi Adam.

I am expecting it in mail soon and will let you know of typos/errors...

cheers

Farsheed Ashouri

unread,
Oct 12, 2011, 3:05:19 PM10/12/11
to python_in...@googlegroups.com
Very good.
--
Sincerely,
Farsheed Ashouri,

Martin La Land Romero

unread,
Oct 12, 2011, 4:10:13 PM10/12/11
to python_in...@googlegroups.com
Getting a copy for my Kindle right now.

Thanks
Martin
Martin La Land Romero
www.martinromerovfx.com
http://martinromerovfx.blogspot.com/
martin...@gmail.com
(415)261-2172

Ricardo Viana

unread,
Oct 12, 2011, 4:12:43 PM10/12/11
to python_in...@googlegroups.com
Thank you very much
For this book just bought the kindle version. This time im really gonna learnt it.

Cheers
Ricardo Viana

Ehsan Kiani

unread,
Oct 12, 2011, 4:14:33 PM10/12/11
to python_in...@googlegroups.com
thanks !
--------------------------------------------
Ehsan Kiani
Character TD
http://vimeo.com/user2219426
Mobile: +98 918 936 9006
[GMT: +3:30 hrs]
Iran
--------------------------------------------

Geordie Martinez

unread,
Oct 12, 2011, 4:33:04 PM10/12/11
to python_in...@googlegroups.com
your link to amazon to  "Buy the Book" at maya-python.com isn't working.

Richard Kazuo

unread,
Oct 12, 2011, 4:41:29 PM10/12/11
to python_in...@googlegroups.com
Here it's workin' just fine.

Geordie Martinez

unread,
Oct 12, 2011, 4:43:28 PM10/12/11
to python_in...@googlegroups.com
yeah. it's working now. It might have been the amazon site.

Jan Lachauer

unread,
Oct 12, 2011, 4:50:10 PM10/12/11
to python_inside_maya
Very interesting, just ordered a copy!

On 12 Okt., 22:14, Ehsan Kiani <ehsankiani.t...@gmail.com> wrote:
> thanks !
>
> On Wed, Oct 12, 2011 at 11:42 PM, Ricardo Viana <cgolhei...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Thank you very much
> > For this book just bought the kindle version. This time im really gonna
> > learnt it.
>
> > Cheers
> > Ricardo Viana
>
> > On Oct 12, 2011, at 8:05 PM, Farsheed Ashouri <farsheed.asho...@gmail.com>
> > wrote:
>
> > Very good.
>
> > On Wednesday, October 12, 2011, Sahak Sahakian wrote:
>
> >> On Wednesday, October 12, 2011 6:43:08 PM, Adam Mechtley wrote:
>
> >>> Hey folks,
>
> >>> For those interested, Ryan and I finally wrapped up our book and (not
> >>> that anyone is keeping me in the loop on release dates) it's available on
> >>> Kindle now, hardcover later this week <<http://www.amazon.com/Maya-Python-Games-Film-Reference/dp/0123785782/...>
> >>>http://www.amazon.com/Maya-**Python-Games-Film-Reference/**
> >>> dp/0123785782/ref=sr_1_1?ie=**UTF8&qid=1318437212&sr=8-1>. Many thanks
> >>> to Seth Gibson and Kristine Middlemiss for contributing chapters, and to
> >>> Dean Edmonds for technical editing assistance. If you're curious, you can
> >>> also check out the companion web site at <http://www.maya-python.com/>
> >>>http://www.maya-python.com/
>
> >>> I mostly wanted to post here to ask that, if anyone on this list happens
> >>> to pick up a copy, please do get in touch with me regarding any errors you
> >>> find! It turns out writing a book is really hard, so I'm sure there were
> >>> plenty of things that made it in under the radar in the final crunch ;) I
> >>> just want to make sure we have an opportunity to fix as many issues as
> >>> possible for the second printing. Thanks!
>
> >>> --
> >>> view archives: <http://groups.google.com/group/python_inside_maya>
> >>>http://groups.google.com/**group/python_inside_maya
> >>> change your subscription settings:
> >>> <http://groups.google.com/group/python_inside_maya/subscribe>
> >>>http://groups.google.com/**group/python_inside_maya/**subscribe
>
> >> Hi Adam.
>
> >> I am expecting it in mail soon and will let you know of typos/errors...
>
> >> cheers
>
> >> --
> >> view archives: <http://groups.google.com/group/python_inside_maya>
> >>http://groups.google.com/**group/python_inside_maya
> >> change your subscription settings:
> >> <http://groups.google.com/group/python_inside_maya/subscribe>
> >>http://groups.google.com/**group/python_inside_maya/**subscribe
>
> > --
> > Sincerely,
> > Farsheed Ashouri,
> > ourway.ir
> > Tel: +98 9388801504
>
> >  --
> > view archives: <http://groups.google.com/group/python_inside_maya>
> >http://groups.google.com/group/python_inside_maya/subscribe
>
> >  --
> > view archives:http://groups.google.com/group/python_inside_maya
> > change your subscription settings:
> >http://groups.google.com/group/python_inside_maya/subscribe
>
> --
> --------------------------------------------
> Ehsan Kiani
> Character TDhttp://vimeo.com/user2219426

Ali A. Jafri

unread,
Oct 13, 2011, 2:19:52 AM10/13/11
to python_in...@googlegroups.com
Already ordered a copy. Look forwarding to reading it and will let you know of any errors I
find.

Thanks!
Ali A. Jafri
www.cgrama.com

brandon bonus

unread,
Oct 14, 2011, 10:21:15 AM10/14/11
to python_in...@googlegroups.com
Thanks!  Just got my kindle version. 
Going to paruse through this morning.
 
-Brandon Bonus

Ray Faenza

unread,
Oct 24, 2011, 12:46:58 AM10/24/11
to python_in...@googlegroups.com
Just got my copy from amazon. Superb. For sure to be a standard book for maya python coders.

na arthur

unread,
Oct 24, 2011, 1:18:52 PM10/24/11
to python_in...@googlegroups.com
Is the book available for Apple book store as well? I don`t have an account for amazon yet.

Thank you,

Arthur

Justin Cerilli

unread,
Oct 24, 2011, 3:39:09 PM10/24/11
to python_inside_maya
I got it not too long after it was released, I've been learning a lot
from it. Haven't come across any errors or issues with it yet. Thank
you for the hard work and great book!

On Oct 24, 12:18 pm, na arthur <younte...@gmail.com> wrote:
> Is the book available for Apple book store as well? I don`t have an account
> for amazon yet.
>
> Thank you,
>
> Arthur
>
>
>
>
>
>
>
> On Sun, Oct 23, 2011 at 9:46 PM, Ray Faenza <rayfae...@gmail.com> wrote:
> > Just got my copy from amazon. Superb. For sure to be a standard book for
> > maya python coders.
>
> > On Fri, Oct 14, 2011 at 10:21 AM, brandon bonus <brandon.bo...@gmail.com>wrote:
>
> >> Thanks!  Just got my kindle version.
> >> Going to paruse through this morning.
>
> >> -Brandon Bonus

Adam Mechtley

unread,
Oct 25, 2011, 12:06:33 AM10/25/11
to python_in...@googlegroups.com
Thanks for the feedback, folks! I'm glad to know some of you have already found it helpful.

Arthur: I unfortunately have no idea what all formats and retailers they are selling it through (it has been pretty "first to go, last to know" on my end). I actually don't see any Elsevier books on iBooks though, so they may not even sell there at all :(

Ricardo Viana

unread,
Nov 10, 2011, 12:57:15 PM11/10/11
to python_in...@googlegroups.com
Hi Adam, im loving your book and learning a lot from it. Thank you for it.
Just a quick remark i've found is that i'm reading it in kindle on ipad. And came across a few issues regarding code formating.
i.e: the ";" used to symbol the end of line is confusing sometimes. I'm on the __str__ and __repr__ part of the book and the sample code doesnt work for me. for instance i dont know when the code is inside the class or outside since there is only ";" in the end of each line.

example:

"19. Execute the following lines to add a __repr__() method to the Human class."
...
i understand that all the code beneath this is "all" to go inside the class declaration.
This way doesnt work for me. when i try to put some code outside it works but not always so i get confused.

Just a suggestion: why not use bitmaps/images to example code? that way it would be easier to read/write/understand.


Hope you don't mind i put a portion of the code i am using here:

import maya.cmds as cmds

class Human(object):

def __init__(self,**kwargs):

self.first_name=kwargs.setdefault('first')

self.last_name=kwargs.setdefault('last')

self.height=kwargs.setdefault('height')

self.weight=kwargs.setdefault('weight')

def bmi(self):

return self.weight/float(self.height)**2

def human_rep(self):

return """Human(%s =%s, %s =%s)"""%(first,first_name,last,last_name)

Human.__rep__= human_rep

sis = Human(first='Ruth',last='miranda')

baby_sis = Human(first='Emily', last='miranda')

print (sis,baby_sis)


all i get is:

(<__main__.Human object at 0x95ece50>, <__main__.Human object at 0x95ecf90>)


Thanks again for writing this book.
Best regards
Ricardo Viana

David Shaw

unread,
Nov 10, 2011, 8:04:18 PM11/10/11
to python_in...@googlegroups.com
Hey,

Been away for a while, was going to to pick it up here in australia and hardcover is AU$95.00!

Looks like an online version is the go!

Australia where books are printed with gold!

Dave

--

Adam Mechtley

unread,
Nov 10, 2011, 10:02:10 PM11/10/11
to python_in...@googlegroups.com
Thanks for the feedback Ricardo. Unfortunately one of the biggest lessons I learned from this experience is what a pain it is to try to write a book with code samples—especially if they're Python! Including images was one possibility we discussed, though it unfortunately has other issues of its own. I'll make sure to pass your feedback on to the publisher though.

As for your specific question, this part of Chapter 5 has you define a method outside the class and then reassign the class's __repr__ attribute to point to this method, also outside the class's definition. (While you would not often do this in practice, it is a handy feature of the interactive interpreter that prevents us from having to re-print the entire class definition with each modification).

Although your spacing doesn't come across for me in your email, the issue looks like you are assigning the new method to a __rep__ attribute, instead of __repr__, which is the attribute it should be overwriting.

Ricardo Viana

unread,
Nov 11, 2011, 3:39:48 AM11/11/11
to python_in...@googlegroups.com
Thank you for your quick reply Adam. Eheh seems it was a mistypo there :).
also checked the companion site where it has all the code in there and it is easier to understand the formating.

cheers Ricardo

On 11/11/2011 03:02 AM, Adam Mechtley wrote:
Thanks for the feedback Ricardo. Unfortunately one of the biggest lessons I learned from this experience is what a pain it is to try to write a book with code samples�especially if they're Python!�Including images was one possibility we discussed, though it unfortunately has other issues of its own. I'll make sure to pass your feedback on to the publisher though.
Reply all
Reply to author
Forward
0 new messages