Hello everyone.
I was playing around with this color thing today again after finding out that it might work with changing colors of blocks inside a python script.
After some trail and error i did find out that .setColor() works perfectly on pythonscripts for plant 3D.
It uses the Color index RGB where for example 100=green 255=black and so on!
This is how i have done it on one of my scripts.
The only disadvantage is .uniteWith() is grabing the color of the object you are uniting to. So if you are looking for a colorful Python script you can group objects and then make a color for the group or just assign the color for each block and skip the unite part.
Body2 = CYLINDER(s, R=D2/2.0, H=FL1, O=0.0).rotateY(90).translate((-L2/2.0-FL1, 0.0, 0.0))
Body2.setColor(12)
Body3 = CYLINDER(s, R=D2/2.0, H=FL1, O=0.0).rotateY(90).translate((L2/2.0, 0.0, 0.0))
Body3.setColor(12)
