On Wed, 26 Mar 2008 17:05:43 -0700 (PDT), pk_pk <aye_hye04@[EMAIL PROTECTED]
>
wrote:
>On Mar 25, 5:27 pm, aen <a...@[EMAIL PROTECTED]
> wrote:
>> Hi Kanita...
>> Sorry, but its been over a year since I worked directly with the API.
>> However if you have not looked for it the:
>> "....\Autodesk\Maya8.5\devkit\plug-ins" directory, there are a
>> number of examples of creating and connecting shader networks.
>> cgfxShaderNode.cpp
>> checkerShader.cpp
>>
>> hth's aen
>>
>> >hi,
>>
>> >how can i create a file node using the maya api?
>>
>> >i would like to create a file node which i can assign to a
>> >MFnPhongShader object.
>>
>> >does anyone have any ideas?
>>
>> >thanks,
>> >kanita
>
>hi aen,
>
>thanks for that lead. it actually helped out a lot- i was able to make
>the file texture node and hook it up to the material. all that remains
>is hooking up the MFnPhongShader material to a phong shading group.
>
>thanks!
>kp
Glad to help...
Hooking up a shader network basically amount to the properl configuration
of the
Dependency Graph (DC) (not the DAG) - dirty node propagation.
There is a very good video intermediate level video tutorial for this;
"Learning Autodesk Maya - Understanding the Maya API - The Dependency
Graph"
http://www.creationengine.com/html/p.lasso?p=15143
(copies of this may also be floating around the net?)
At first it seems to be a very simple tutorial, but at the end they give
some
practical understanding of API Nodes and Maya Cl***** (which are weird).
Also... www.highend3d.com has a good API Forum, not very active but they
do have
good listing of archived postings. And Highend3d also have some plugins
with
full source code, reverse engineering works great.
luck...aen


|