<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I'm trying to implement some pynode in Cycles.<br></div>I got some working nodes, and some issues.<br><br></div>Bases on blend file provided [1] :<br><br></div>- open .blend<br></div>- run script<br></div>- with cube selected, and "color" material choosen.<br></div>- Algo in pynode "Object Attribute" is : if sphere is selected, color is red, else, color is green<br><br></div>This works correctly.<br>Now, change material to "position" material.<br><br></div>- In my "Object Attribute" node, change objected.<br><br></div>There is no change in texture coordinate. It seems that Vector Math node don't receive data from my PyNode.<br><br>Any idea why this is working for color, but not for position ?<br></div>Thanks !<br><br></div>Don't hesitate to contact me if you need more information.<br><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br>[1] <a href="http://www.pasteall.org/blend/32913">http://www.pasteall.org/blend/32913</a><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Julien DUROURE<br><br></div><a href="http://julienduroure.com" target="_blank">http://julienduroure.com</a><br><div><br></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>