Re: [Maya-Python] Announcing: Intro to Python for Maya

2011-10-09 Thread Farsheed Ashouri
That's nice, Thanks.

On Sunday, October 9, 2011, Justin Israel wrote:

 Hi all,

 I just wanted to make an announcement that my first online video tutorial
 was released today through cmiVFX.com

 Its an Introduction to Python for Maya course, aimed at artists that are
 new to python. If any of you are just starting out learning the language,
 check it out! Or maybe you work with Maya artists that might want to pick up
 some new skills. Then pass this on to them!

 Link:
 http://cmivfx.com/tutorials/view/320/Python+Introduction+Vol+01+-+Maya

 I plan to release some more videos, that go into further details and
 complexity, but this should get a lot of newcomers started. Also, if any of
 you more accomplished python coders out there want to suggest some topics or
 examples that would make for good intermediate or advanced video additions,
 please do contribute your thoughts! I want to make sure to cover everyones
 interests and help this community grow in the language.
 If anyone happens to check it out, feel free to leave me some feedback
 either here, or on my blog.

 http://www.justinfx.com/2011/10/08/intro-to-python-for-maya-artists-tutorial/

 Thanks!
 justin

 --
 view archives: http://groups.google.com/group/python_inside_maya
 change your subscription settings:
 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
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