In going through updating tutorials on the materials branch, I am stuck with t_piIntro_material_color.
I updated piMaterialAssign's call to piMaterialFind, changing
idx = piMaterialFind(thisR, 'name', materialName);
to
idx = piMaterialFind(thisR.materials.list, 'name', materialName);
which I think is right.
But the format of the materials in thisR.materials.lib (from the simple scene) appears out of date, which is
causing troubles. This may have its origin with piMaterialLib, which returns a list of materials that also appear
to have the old format.
I am not sure what the right fix is. Maybe just updating piMaterialLib would do it.
It's also possible that the problem is that the tutorial is trying to do things in an old way that should be more
completely overhauled.
In going through updating tutorials on the materials branch, I am stuck with t_piIntro_material_color.
I updated piMaterialAssign's call to piMaterialFind, changing idx = piMaterialFind(thisR, 'name', materialName); to idx = piMaterialFind(thisR.materials.list, 'name', materialName); which I think is right.
But the format of the materials in thisR.materials.lib (from the simple scene) appears out of date, which is causing troubles. This may have its origin with piMaterialLib, which returns a list of materials that also appear to have the old format.
I am not sure what the right fix is. Maybe just updating piMaterialLib would do it.
It's also possible that the problem is that the tutorial is trying to do things in an old way that should be more completely overhauled.