Hi Juan.

This will probably require a fix to the ShadingColorMaterial class to allow this to be set as a property for use with Awaybuilder. I started implementing a way to create init objects from a string value that you could use through Awaybuilder but the problem is that most material class constructors expect a specific value as the first argument and the dynamic init object as the second. ShadingColorMaterial expects the color value to be set as the first argument before the init object so that wouldn't work either I'm afraid.

I'll keep trying to think up a solution but in the meantime you should be able to work around the issue by skipping the material properties for that object and then setting them manually. When the scene has finished building you could try something like this:

var geometry : SceneGeometryVO = this.world.getGeometryById ( "exampleSphereObjectId" ) ; ( geometry.mesh as Sphere ).material = new ShadingColorMaterial ( "0xFF7700" ) ;

Hope that helps!

.andreas



On 7 Apr 2009, at 12:14, Juan Bonfante wrote:


ReferenceError: Error #1056: Cannot create property color on
away3d.materials.ShadingColorMaterial.

When applying material_color from Maya property. I've noticed the
class doesn't have a public method for getting or setting the color.
How else do I add color?

Reply via email to