Not sure if this is what you are trying to do, hope it helps:
for param in oNode.NestedObjects:
if param.Name == "surface":
surfaceParam = param
myOutputShader = surfaceParam.NestedObjects(0)
print myOutputShader
>>>> sphere.Material.Lambert
On Tue, Mar 3, 2015 at 7:53 AM, Jan Dubied <[email protected]> wrote:
> hi guys
> any idea how i can sort out "output" ports and just query shader input
> parameters?
>
> i tried this:
>
> for i in oNode.Parameters :
> if ( i.PortType == siPortInput ) :
> print i
>
> where oNode is the selected shader node in the render tree.
> but it seems that PortInput is not defined...
>
> thanks in advance
>
>
> --
>
> ------------------------------
>
> Jan Dubied
> 2D/3D Artist
>
> *ON LINE VIDEO 46 AG*
> Leutschenbachstr. 46 / 8050 Zurich / Switzerland
> Phone +41 44 305 73 73 / Fax +41 44 305 73 00
> www.onlinevideo.ch
>