On 21/09/2013 at 03:06, xxxxxxxx wrote:
There is this wonderful TEXTURE User Data field, which shows a little icon of the file you have selected.
I thought I could use CUSTOMGUI_TEXTURENAME to do the same thing in my CommandPlugin.
However, it is not working.
c4d.CUSTOMGUI_TEXTURENAME gives the same results as c4d.CUSTOMGUI_FILENAME.
You can select a file, but it does not give you this little icon.
#self.hdrfile = self.AddCustomGui(MY_HDRFILE, c4d.CUSTOMGUI_FILENAME, "", c4d.BFH_SCALEFIT, 0, 0)
self.hdrfile = self.AddCustomGui(MY_HDRFILE, c4d.CUSTOMGUI_TEXTURENAME, "", c4d.BFH_SCALEFIT, 0, 0)
Am I doing something wrong or is it not possible and is there then another way to simulate this User Data TEXTURE field / data type?