On 31/01/2018 at 05:05, xxxxxxxx wrote:
Hi guys, I sincerely need your help,
I am trying to manipulate my materials with python...i want to select all my cinema 4d materials, and insert a Filter shader at the top of the color channel texture slot, and then set its lightness to -30%, but without loosing the existing content. Then, in case that the first shader in the texture channel was a bitmap shader, i want to copy the whole content of the slot with my filter on top, and paste it to the bump channel, where i desaturate the new filter shader i have just insert to -100%. Then copy the whole thing again to the reflections channel, change contrast, gamma...
I have menaged to select my cinema 4d materials, change some parameters, and even insert the shader where i want, but i loose everything that was there..._<_img src="http://www.c4dcafe.com/ipb/uploads/monthly_2018_01/image.png.af049136de416a7beb7797e21fabc373.png" height="1000" width="1690" border="0" /_>_
can you please guys help_<_img src="http://https://www.c4dcafe.com/ipb/uploads/monthly_2018_01/image.png.af049136de416a7beb7797e21fabc373.png" border="0" /_>_" />
Another thing...i don' understand why when i try to use the if statement with this formula:
If x == 0:
If s != 0:
it gives me error or do not understand me, but when i use this one:
If x is None:
If x is not None:
it works. What is the difference?
....and please have patience with me...I started to learn python 3 days ago, as I fell i love with coding...and forgive me the dumb questions,
thanks to anybody in advance....