Set Material Parameters from Python Script

Trying to break through some mysteries here, I discovered some interesting things. I am on R2017 at the moment:

  • First, the color of a material (the one from the Graphics tab) can be set with a simple Element.SetParameterByName node. The awaited value is an integer but I don’t know how this number is defined. I have been able to set a value from 0 up to 16777215.
  • Second, the whole Appearance tab can be set by switching the material asset element with Material.SetMaterialAssetByAssetId or Material.SetMaterialAssetByMaterial from Archi-lab_Grimshaw, but I assume that this has already been exposed somewhere.