Hi


It is a string.

// Using one of the CrowdFX sample scenes:

SelectObj("Pedestrian_Mesh.Actor_Copies", null, null);
o = Selection(0)

//o.ActivePrimitive.Geometry.GetICEAttributeFromName("Materials").DataArray.toArray()
// WARNING : 3391 - This ICEAttribute doesn't refer to a 1D array: <Attribute: Materials>

a = o.ActivePrimitive.Geometry.GetICEAttributeFromName("Materials")
LogMessage( a.DataType )
// INFO : 131072
http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/si_om/siICENodeDataType.html


On 15/02/2013 3:08 PM, Fabricio Chamon wrote:
thanks guys! I rebuilt the scene and started incremental saving too...Really hard scenario to work on, I hope this will get fixed soon.

Another question: it seems really easy, but I can't get the ActorCopies ICE materials array via script. I feel it should be a singleton(which it is), 1D Array. This js code:

oActorCopies.ActivePrimitive.Geometry.GetICEAttributeFromName("Materials").DataArray.toArray()

returns:

This ICEAttribute doesn't refer to a 1D array: <Attribute: Materials>

and

oActorCopies.ActivePrimitive.Geometry.GetICEAttributeFromName("Materials").*DataArray2D*.toArray()

returns

ERROR : Type mismatch

any clues ?

Reply via email to