()
Search and output all parameters in selected SHOP network with textures
Search and output all parameters in selected SHOP network with textures
Search and output all parameters in selected SHOP network with textures
def getTexturedParameters():
    '''
    Search and output all parameters in selected SHOP network with textures
    '''

    # list of textures
    listTexturedParameters = []
    # Get list of VRAY materials
    listMaterials_VRAY = SHOP_VRAY.children()
    for material_VRAY in listMaterials_VRAY:
        materials = [material for material in material_VRAY.children() if material.type().name() == 'vopsurface']
        # print material.name()
        for node in materials:
            textures = [texture for texture in node.children() if texture.type().name() == 'subnet']
            for parameter in textures:
                params = [param for param in parameter.children() if param.name() == 'texture_name']
                for i in params:
                    texturedParameter = i.parm('parmname').eval()
                    if not texturedParameter in listTexturedParameters:
                        print '>> ADDED PARAMETER: {0} FROM MAT: {1}'.format(texturedParameter, material_VRAY)
                        listTexturedParameters.append(texturedParameter)
    print listTexturedParameters
def getTexturedParameters ( ) : # list of textures listTexturedParameters = [ ] # Get list of VRAY materials listMaterials_VRAY = SHOP_VRAY . children ( ) for material_VRAY in listMaterials_VRAY : materials = [ material for material in material_VRAY . children ( ) if material . type ( ) . name ( ) == 'vopsurface' ] # print material.name() for node in materials : textures = [ texture for texture in node . children ( ) if texture . type ( ) . name ( ) == 'subnet' ] for parameter in textures : params = [ param for param in parameter . children ( ) if param . name ( ) == 'texture_name' ] for i in params : texturedParameter = i . parm ( 'parmname' ) . eval ( ) if not texturedParameter in listTexturedParameters : print '>> ADDED PARAMETER: {0} FROM MAT: {1}' . format ( texturedParameter , material_VRAY ) listTexturedParameters . append ( texturedParameter ) print listTexturedParameters