Is there a filename gui for a GeDialog? [SOLVED]
On 24/01/2016 at 11:21, xxxxxxxx wrote:
I just feel kinda dumb but.. I can't find a filename gui for a GeDialog.
So I just wanted to ask you guys (since you all have more experience) if there is one.
I would need it to set Textures for a certain material channel.
Thanks in advace!
On 25/01/2016 at 01:39, xxxxxxxx wrote:
there is no "primitive" filename dialog gadget. The filename GUI element is made of a default string gadget and a default button gadget. You can create this custom GUI element with AddCustomGui(). The ID of the filename GUI is CUSTOMGUI_FILENAME. The value stored with the GUI element can be accessed with SetString() and GetString():
self.AddCustomGui(self._filename, c4d.CUSTOMGUI_FILENAME, "", c4d.BFH_SCALEFIT, 50, 10, c4d.BaseContainer()) self.SetString(self._filename, "C:\\justsomefile.png")
On 25/01/2016 at 08:54, xxxxxxxx wrote:
thanks for your reply, your really helped me alot!
But if there actualy is a customgui, why isn't it in the documentation then?
On 25/01/2016 at 09:18, xxxxxxxx wrote:
the Python API is an incomplete copy of the C++ API so you find a lot relevant information also in the C++ documentation, in this case you find the CUSTOMGUI type.
On 25/01/2016 at 11:43, xxxxxxxx wrote:
thanks for the tip, didn't know it was an actual copy of the c++ sdk.