I'm Creating some nodes through python script. The problem is that all the nodes are overlapping each over. I just wanna programatically re position those nodes. How to do this?
imgtx1 = nodes.new('ShaderNodeTexImage')
imgtx2 = nodes.new('ShaderNodeTexImage')
Just consider these 2 nodes as of now. Thanks in advance!
newmat.location = Vector(500,100)I getNameError: name 'Vector' is not defined.newmat.location.x = -200works though. – edna Jun 18 '19 at 05:11import mathutils... I'll correct the answer. – Secrop Jun 20 '19 at 07:58imgtx2.location = -300, 150works fine. – edna Jun 21 '19 at 04:50