Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-11 Thread Tom Bridgman
I occasionally work with Maya and Renderman in my day job.  MEL was  
one of the reasons why I dropped Maya and started using cgkit  
(cgkit.sourceforge.net) to interface directly to Renderman.

With what little MEL I've done lately, there should be very little  
'Mac-specific' issues for using a python engine in Maya.  I assume  
Maya has defined a set of classes for interfacing with their object  
and texture generation and for the most part, it will look like any  
other python module from inside the scripting window.  I believe even  
GUI controls are done more through the Maya interface (which then  
calls the Mac interface).

Don't they include any documentation for accessing Python in Maya?  
(Our site hasn't done the Maya upgrade as yet.)

Tom


On Jul 11, 2007, at 12:01 AM, [EMAIL PROTECTED] wrote:

> Actually I am working in:
> Maya 8.5(http://usa.autodesk.com/adsk/servlet/index? 
> siteID=123112&id=7635643)
> and Next Limits Real Flow 4(http://www.nextlimit.com/nlscript/)
> My interest is in accessing the Python scripting functionality  
> within these
> and
> other applications. I am new to Python and programming. I need all  
> the help I
> can get.
>
> Victor Merritt
>
> From: Daniel Lord <[EMAIL PROTECTED]>
> Date: 2007/07/10 Tue AM 10:35:36 CDT
> To: has <[EMAIL PROTECTED]>, Victor Merritt  
> <[EMAIL PROTECTED]>
> Cc: pythonmac-sig@python.org
> Subject: Re: [Pythonmac-SIG] Mac oriented Python book (was: no  
> subject)
>
> I am guessing that Victor is either interested in scripting Blender
> or Modo since those are the only higher-end 3D graphics modeling and
> rendering packages I know of that support Python scripting.
> I am ruling out Poser and Shade.
>
> The issue with those packages is that they use an embedded
> interpreter so standalone aspects of Python (PyObjC, py2app,
> wxPython) are useless in that context as far I have been able to
> determine.
> I use Modo but have only tinkered with using Python with it.
>
> On Jul 10, 2007, at 7:53, has wrote:
>
>> Victor Merritt wrote:
>>
>>> I am an Visual Effects artist in need of a good Mac oriented Python
>>> book.
>>> I have been reading the online materials, but I don't always have
>>> the time
>>> to sit in front of a computer, thus my need for a good Mac focused
>>> Python Book.
>>> Any suggestions would be very helpful.
>>
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-11 Thread Ronald Oussoren
 
On Wednesday, July 11, 2007, at 06:03AM, <[EMAIL PROTECTED]> wrote:
>Actually I am working in: 
>Maya 8.5(http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=7635643) 
>and Next Limits Real Flow 4(http://www.nextlimit.com/nlscript/)
>My interest is in accessing the Python scripting functionality within these 
>and 
>other applications. I am new to Python and programming. I need all the help I
>can get.

I don't know any Mac oriented Python books. My guess is that you don't really 
need anything mac specific, and there are tons of general Python programming 
books.  Most O'Reilly books are pretty good, so maybe "Learning Python" could 
help you (http://www.oreillynet.com/catalog/lpython2/)

DISCLAIMER: I haven't read this book, or any other introductionary python 
books. 

Ronald

>
>Victor Merritt
>
>From: Daniel Lord <[EMAIL PROTECTED]>
>Date: 2007/07/10 Tue AM 10:35:36 CDT
>To: has <[EMAIL PROTECTED]>, Victor Merritt <[EMAIL PROTECTED]>
>Cc: pythonmac-sig@python.org
>Subject: Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)
>
>I am guessing that Victor is either interested in scripting Blender  
>or Modo since those are the only higher-end 3D graphics modeling and  
>rendering packages I know of that support Python scripting.
>I am ruling out Poser and Shade.
>
>The issue with those packages is that they use an embedded  
>interpreter so standalone aspects of Python (PyObjC, py2app,  
>wxPython) are useless in that context as far I have been able to  
>determine.
>I use Modo but have only tinkered with using Python with it.
>
>On Jul 10, 2007, at 7:53, has wrote:
>
>> Victor Merritt wrote:
>>
>>> I am an Visual Effects artist in need of a good Mac oriented Python
>>> book.
>>> I have been reading the online materials, but I don't always have
>>> the time
>>> to sit in front of a computer, thus my need for a good Mac focused
>>> Python Book.
>>> Any suggestions would be very helpful.
>>
>___
>Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
>http://mail.python.org/mailman/listinfo/pythonmac-sig
>
>___
>Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
>http://mail.python.org/mailman/listinfo/pythonmac-sig
>
>
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-10 Thread Daniel Lord

To quote Autodesk/Alias's site:
"Python
Python, a powerful and accessible scripting language, is now  
available within Maya. Not only has Python been integrated into the  
software at the same level as the Maya Embedded Language (MEL), its  
bindings to the OpenMaya API give you an alternative language for  
plug-in development. Plus, the Maya Python modules can be imported  
into an external standalone Python interpreter for batch processing.  
With its higher-level language constructs, Python supports developer  
productivity while providing easily maintainable code. The language  
is also highly extensible, with a broad collection of third-party  
tools and modules freely available"


Wow. MEL has always been the way to script Maya from Day One. I am  
shocked and surprised they opened up to a standard scripting  
language. But I think it is great news. Granted I always wondered why  
these vendors ignored open standard languages in an egotistical rush  
to do their own, but at least Autodesk/Alias seems to be waking up.  
That is great news.If only Maya complete wasn't so expensive at  
$7000...I'd love to have those Navier-Stokes Fluid Dynamics models  
they showed off in the Perfect Storm. I have sea kayaked in rough  
Pacific seas a bit and had just a hint of the wrath of the ocean.  
Those models in that film made it seem real to me. Oh well.




On Jul 10, 2007, at 9:01 PM, [EMAIL PROTECTED] wrote:



Actually I am working in:
Maya 8.5(http://usa.autodesk.com/adsk/servlet/index? 
siteID=123112&id=7635643)

and Next Limits Real Flow 4(http://www.nextlimit.com/nlscript/)
My interest is in accessing the Python scripting functionality  
within these

and
other applications. I am new to Python and programming. I need all  
the help I

can get.

Victor Merritt

From: Daniel Lord <[EMAIL PROTECTED]>
Date: 2007/07/10 Tue AM 10:35:36 CDT
To: has <[EMAIL PROTECTED]>, Victor Merritt  
<[EMAIL PROTECTED]>

Cc: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Mac oriented Python book (was: no  
subject)


I am guessing that Victor is either interested in scripting Blender
or Modo since those are the only higher-end 3D graphics modeling and
rendering packages I know of that support Python scripting.
I am ruling out Poser and Shade.

The issue with those packages is that they use an embedded
interpreter so standalone aspects of Python (PyObjC, py2app,
wxPython) are useless in that context as far I have been able to
determine.
I use Modo but have only tinkered with using Python with it.

On Jul 10, 2007, at 7:53, has wrote:


Victor Merritt wrote:


I am an Visual Effects artist in need of a good Mac oriented Python
book.
I have been reading the online materials, but I don't always have
the time
to sit in front of a computer, thus my need for a good Mac focused
Python Book.
Any suggestions would be very helpful.



___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig



___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-10 Thread vmerritt
Actually I am working in: 
Maya 8.5(http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=7635643) 
and Next Limits Real Flow 4(http://www.nextlimit.com/nlscript/)
My interest is in accessing the Python scripting functionality within these 
and 
other applications. I am new to Python and programming. I need all the help I
can get.

Victor Merritt

From: Daniel Lord <[EMAIL PROTECTED]>
Date: 2007/07/10 Tue AM 10:35:36 CDT
To: has <[EMAIL PROTECTED]>, Victor Merritt <[EMAIL PROTECTED]>
Cc: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

I am guessing that Victor is either interested in scripting Blender  
or Modo since those are the only higher-end 3D graphics modeling and  
rendering packages I know of that support Python scripting.
I am ruling out Poser and Shade.

The issue with those packages is that they use an embedded  
interpreter so standalone aspects of Python (PyObjC, py2app,  
wxPython) are useless in that context as far I have been able to  
determine.
I use Modo but have only tinkered with using Python with it.

On Jul 10, 2007, at 7:53, has wrote:

> Victor Merritt wrote:
>
>> I am an Visual Effects artist in need of a good Mac oriented Python
>> book.
>> I have been reading the online materials, but I don't always have
>> the time
>> to sit in front of a computer, thus my need for a good Mac focused
>> Python Book.
>> Any suggestions would be very helpful.
>
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-10 Thread Daniel Lord
I am guessing that Victor is either interested in scripting Blender  
or Modo since those are the only higher-end 3D graphics modeling and  
rendering packages I know of that support Python scripting.
I am ruling out Poser and Shade.

The issue with those packages is that they use an embedded  
interpreter so standalone aspects of Python (PyObjC, py2app,  
wxPython) are useless in that context as far I have been able to  
determine.
I use Modo but have only tinkered with using Python with it.

On Jul 10, 2007, at 7:53, has wrote:

> Victor Merritt wrote:
>
>> I am an Visual Effects artist in need of a good Mac oriented Python
>> book.
>> I have been reading the online materials, but I don't always have
>> the time
>> to sit in front of a computer, thus my need for a good Mac focused
>> Python Book.
>> Any suggestions would be very helpful.
>
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Mac oriented Python book (was: no subject)

2007-07-10 Thread has
Victor Merritt wrote:

> I am an Visual Effects artist in need of a good Mac oriented Python  
> book.
> I have been reading the online materials, but I don't always have  
> the time
> to sit in front of a computer, thus my need for a good Mac focused  
> Python Book.
> Any suggestions would be very helpful.

I don't think there are any specifically Mac-oriented Python books,  
but the language and core library is the same on all platforms so any  
good Python book will do for learning those. Other folks can probably  
recommend specific titles, though it'd help if you indicate if you're  
looking for beginner, intermediate or expert material.

As far as Mac-specific extensions go, most of the stuff in standard  
library you should just ignore as being obsolete. Some of the Carbon  
extensions are still relevant if you need to do Carbon stuff, in  
which case refer to their docstrings and Apple's Carbon documentation  
to make sense of those.

As for third-party packages, the main three are PyObjC, py2app and  
appscript, all of which include basic documentation and examples. If  
using PyObjC you should also refer to Apple's reference and API  
documentation. If you want a general book for learning Cocoa  
programming, Aaron Hillegass's 'Cocoa Programming for OS X' is well  
regarded. If using appscript you should also refer to individual  
applications' dictionaries and, if provided, supplementary  
documentation. If you want a general book on AppleScript, get Matt  
Neuburg's 'AppleScript: The Definitive Guide'.

If you want more specific advice, tell us what sort of stuff it is  
you want to do and what programming skills you already have.

HTH

has

-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig