Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to get uv coords using expression in Maya?

1 REPLY 1
Reply
Message 1 of 2
brandaosa
234 Views, 1 Reply

how to get uv coords using expression in Maya?

Using software render (Maya), an expression like blinn1.colorR = file1.uCoord renders a gradient. How to do similar in Arnold?

I am trying to connect a file texture node and getting information from pixels using uCoord, vCoord. But in Arnold it seems some pre-calculation discards outcolor affected by expressions.

(Below can draw a circle on the middle of a plane for software render)

$u = place2dTexture1.uCoord - .5;
$v = place2dTexture1.vCoord - .5;
$uv = <<$u,$v, 0>>;
$d = mag($uv);
$r = 0.3;
$c = smoothstep($r, $r+.02, $d);
$col =<<$c, $c, $c>>;
blinn1.colorR = $col.x;
blinn1.colorG = $col.y;
blinn1.colorB = $col.z;
Tags (2)
Labels (2)
1 REPLY 1
Message 2 of 2
Stephen.Blair
in reply to: brandaosa

Expressions are not going to be evaluated at render time. At best, they'll be evaluated when MtoA translates the scene, and some constant values will be exported.



// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report