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