I don't think it is possible.

MaterialID becomes undefined/uninitialized pretty quick...
http://screencast.com/t/HeNPz4qgwlh

On 11/03/2013 12:25 PM, Eugen Sares wrote:
Thanks, Steven!
IsDefined is read-only, by the looks.
So how do I write to it to define it (outside of ICE), when it cannot be written until it's defined??


Am 11.03.2013 17:15, schrieb Stephen Blair:
MaterialID isn't defined. Seems that you cannot set MaterialID.DataArray unless IsDefined is True

On 11/03/2013 11:44 AM, Eugen Sares wrote:
Whereas this throws a warning:
<JScript>
NewScene("", "false");
var oObj = CreatePrim("grid", "MeshSurface", "", "");
SetValue("grid.polymsh.geom.subdivu", 2, null);
SetValue("grid.polymsh.geom.subdivv", 2, null);
var oICEAttr = oObj.ActivePrimitive.GetICEAttributeFromName("MaterialID"); oICEAttr.DataArray = [0,1,2,3]; // WARNING : 3403 - The data is not set on this ICEAttribute: MaterialID

var oProp = oObj.AddProperty("AttributeDisplay");
SetValue(oObj.Name + ".AttributeDisplay.attrname", "MyLong", null);
</JScript>


Reply via email to