Skip to main content

All Questions

47 votes
3 answers
28k views

Control Cycles/Eevee material nodes and material properties using python?

How can I define the different properties of an Cycles/Eevee material? Such things as glossy, glass, diffuse, RGB-color, emissive via python scripting?
binaryBigInt's user avatar
  • 1,047
41 votes
1 answer
51k views

How to assign a new material to an object in the scene from Python?

How can I assign a new material to an object in the scene via Python?
binaryBigInt's user avatar
  • 1,047
2 votes
1 answer
560 views

How to check if object is cycles light source?

My first idea was to get the surface type of the material. If this is an emission shader it should be a light source, but I can't find something in the python documentation to get the surface input.
p2or's user avatar
  • 16k
3 votes
1 answer
388 views

copy linked materials nodes to local material

DISCLAIMER: I rewrite my post upon the latest success to not flood my own post with already solved parts so I left only the part that really is still not working... PROBLEM: I need to replace all ...
bublible's user avatar
  • 111
15 votes
2 answers
3k views

PyNodes, the bare basics

I know it's a very new thing (post 2.4 era anyways) but there seems to be very little documentation and examples for PyNodes in general, and the little there is doesn't seem to work in latest SVN (...
Greg Zaal's user avatar
  • 10.8k

15 30 50 per page
1 2
3