Hello guys,
I’m pretty news incoming scripting community and i try to do a script transfering shader from mesh to alembic import.
i’m doing this :
//list shaders
string $sel[] = ls -mat;
//For every shader
for ($shader in $sel)
{
select $shader;
string $mySel[] = ls -sl -mat;
//Select Object link to the Shader
string $hyperSel[] = hyperShade -objects $mySel;
//Get long name
string $myNewSel[] = ls -sl -o -v -long;
//for each object search and assign shader to ALB group
for($obj in $myNewSel)
{
select (“ALB” + $obj);
hyperShade -assign $mySel;
}
}
But when i run the script i get that error
No match found “ALB|ALB|longname”, i don’t understand why he twice the ALB ?
Help 
Romain