On 09/09/2013 at 01:48, xxxxxxxx wrote:
Because you cannot add images to a layer in for example the luminance channel, I defined a default material with a layer with 3 images in the luminance channel.
For test purposes I print out the names and the file names of the images.
However, when I change the sequence (the order) of the images in the layer, when printing the sequence (the order) does not seemed to be changed.
Am I missing something here?
import c4d
#Welcome to the world of Python
def main() :
mat1 = doc.SearchMaterial("MatPython")
shd = mat1[c4d.MATERIAL_LUMINANCE_SHADER]
lshd1 = shd.GetDown()
print "lshd1 naam filenaam:",lshd1[c4d.ID_BASELIST_NAME], lshd1[c4d.BITMAPSHADER_FILENAME]
lshd2 = lshd1.GetNext()
print "lshd2 naam filenaam:",lshd2[c4d.ID_BASELIST_NAME], lshd2[c4d.BITMAPSHADER_FILENAME]
lshd3 = lshd2.GetNext()
print "lshd3 naam filenaam:",lshd3[c4d.ID_BASELIST_NAME], lshd3[c4d.BITMAPSHADER_FILENAME]
if __name__=='__main__':
main()