Attributes just need to have specific naming to pull from the sampler.
Special names include:
inColor
normalCamera
tangentUCamera
etc.

Once you have those attributes, they should just be filled with the relevant
data.

The api has the MVector class which contains all the vector operations.

On Mon, Feb 23, 2009 at 6:40 AM, wilsimar <wilsima...@gmail.com> wrote:

>
> hi.. I´m making my first custom node... and after read maya api docs, I
> have some questions...
>
> ... how to get rendering info in my compute function.. like.. current
> rendering camera position and/or current sampling point position in
> camera space.?
>
> ... mag (vector lenght) mel function exists in maya api?
>
> ... how to get interactive input from maya samplerInfo node in my custom
> node? if I connect samplerInfo node pointCamera output in
> distanceBeetwen input is OK, but if I connect same output from
> samplerInfo node in my custom node, it get zero values. My custom node
> input is floatVector or float3 or double3...
>
> thanks.
>
> (sorry my english)
>
> Wilsimar
> Goiânia - Goiás - Brazil
>
>
> >
>


-- 
www.chadvernon.com

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to