masd
08-18-2006, 05:32 PM
Hi Everyone,
I am new here and in this field also.
I am writing a script to show material properties of a selected object in the scene. So far, it can show a list of materials when an object is selected then a material bitmap can be opened in a dialog.
The problem is, it works fine for the first object then if i select some other object in the scene and try to open a material bitmap, the dialog shows the old bitmap (that of previous displayed material) not the currently selected one. I checked by printing the bitmap name and its correct that means prints the currently selected bitmap name but the result in dialog is not correct, always displaying the old bitmap.
Can anyone have some idea how to correct this?
Thanks
I am new here and in this field also.
I am writing a script to show material properties of a selected object in the scene. So far, it can show a list of materials when an object is selected then a material bitmap can be opened in a dialog.
The problem is, it works fine for the first object then if i select some other object in the scene and try to open a material bitmap, the dialog shows the old bitmap (that of previous displayed material) not the currently selected one. I checked by printing the bitmap name and its correct that means prints the currently selected bitmap name but the result in dialog is not correct, always displaying the old bitmap.
Can anyone have some idea how to correct this?
Thanks
