[Maya-Python] Re: Interactive selection of objects

2011-10-18 Thread Jan Lachauer
Does this help: 
http://download.autodesk.com/us/maya/2010help/Commands/scriptCtx.html
?

On 17 Okt., 17:20, André Adam a_adam_li...@gmx.de wrote:
 Hi again,

 most Maya tools rely on input selections to be made prior to executing
 a command working on the selection. Now, instead of doing that I'm
 looking for an easy way to invoke an interactive pick session from a
 function. I find bits and pieces in the API documentation, all of them
 looking pretty much over the top for this rather simple task.

 Anyone having a hint on how to tackle that? Thanks in advance, cheers!

 -André

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe


[Maya-Python] Re: Book

2011-10-12 Thread Jan Lachauer
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.comwrote:









  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=**UTF8qid=1318437212sr=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
  change your subscription settings:
  http://groups.google.com/group/python_inside_maya/subscribe
 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
 Mobile: +98 918 936 9006
 [GMT: +3:30 hrs]
 Iran
 

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe


[Maya-Python] Is it possible to write a HwShaderNode in Python?

2011-10-09 Thread Jan Lachauer
Hello All,

for several days I'm now trying to implement a Hw Shader Node using
the Python API.

Starting with the most basic node possible, I took RobTheBloke's
BasicHwShader and removed everything leaving just the color attribute
( see his c++ example here:
http://nccastaff.bournemouth.ac.uk/jmacey/RobTheBloke/www/source/maya/BasicHwShader1.zip
)

The problem occurs in the glGeometry method.
The call
glFT.glDrawElements( prim, indexCount,
OpenMayaRender.MGL_UNSIGNED_INT, indexArray )
just crashes Maya.

You can view my python code here:
http://pastebin.com/DtLVVND6

Does anyone have a clue how this could work? Any help is greatly
appreciated, thank you!

All the best, jan

PS: the glGeometry method also takes a pointer-to-pointer argument for
the normalArrays, i was also wondering if it's possible to acces that
with the MScriptUtil in some way??? getFloat4ArrayItem and
getFloatArrayItem doesn't work...

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe


[Maya-Python] MNurbsIntersector

2009-09-01 Thread Jan Lachauer

Hello Everybody,

First: thank you for this very usefull mailinglist!!

Second: i want to work with the MNurbsIntersector class but I don't 
manage to get it right.

nurbIntersect = OpenMaya.MNurbsIntersector()

gives me the error:

# AttributeError: 'module' object has no attribute 'MNurbsIntersector' #

In C++ its just: MNurbsIntersector nurbIntersect;
(see: closestPointOnNurbsSurfaceCmd.cpp, and 
intersectOnNurbsSurfaceCmd.cpp)

Does anyone know how i can use it in the Python API?

Thank you.

All the best,
delaque


--~--~-~--~~~---~--~~
http://groups.google.com/group/python_inside_maya
-~--~~~~--~~--~--~---