Thanks Fabrice & le_unam, I did't expect quick raplay like that... @Fabrice, it was like you presumed - wrong material-id. I used material id with "m_" prefix that was set in Maya.
tnx again, have a nice day On Feb 8, 10:32 am, le_unam <[email protected]> wrote: > well its just an information from me cause i had the same problem and > upodatematerial never worked for me but replacematerial did ... so i > just wanted to give this info ^^ > > On 8 Feb., 09:58, Fabrice3D <[email protected]> wrote: > > > In case the material needs only to be accessed to update its > > material.bitmap, a replace is not necessary. > > > If Ivan doesn't get the right material back from the lib, it will not be > > possible for him to replace the material, > > as this replaceMaterial requires both new and old material to work. > > > That's why I asked if he gets the right material back from the library. > > Note that the id is the same one as the id set in Prefab prior to bsp > > export. > > > Fabrice > > > On Feb 8, 2011, at 8:28 AM, le_unam wrote: > > > > hey ... for the tree there is a replacematerial function ... so try > > > _tree.replaceMaterial(.....) > > > > On 7 Feb., 23:31, Fabrice3D <[email protected]> wrote: > > >> if you ask the material with CentralMaterialLibrary.getMaterial(id), do > > >> you get it back? > > > >> Fabrice > > >> On Feb 7, 2011, at 11:20 PM, Baraba wrote: > > > >>> bump > > > >>> anybody? i can't get it work > > > >>> On Feb 5, 2:31 pm, Baraba <[email protected]> wrote: > > >>>> I created BSPTree : > > > >>>> [Embed(source="BSPdatoteka.awd", mimeType="application/octet-stream")] > > >>>> private var BSPFile:Class; > > >>>> ... > > >>>> _tree = BSPTree(AWData.parse(new BSPFile(), {customPath:"./ > > >>>> images/"})); > > > >>>> I want to change material of specific object in BSPTree... > > >>>> I tried something like this: > > > >>>> CentralMaterialLibrary.updateMaterial("stand_S_2", _probeMat); > > > >>>> ...nothing happens. Please help.
