Is there a filename gui for a GeDialog? [SOLVED]

On 24/01/2016 at 11:21, xxxxxxxx wrote:

hey all,

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!

grettings,
neon

On 25/01/2016 at 01:39, xxxxxxxx wrote:

Hello,

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")  

best wishes,
Sebastian

On 25/01/2016 at 08:54, xxxxxxxx wrote:

Hey S_Bach,

thanks for your reply, your really helped me alot!
But if there actualy is a customgui, why isn't it in the documentation then?

greetings, 
neon

On 25/01/2016 at 09:18, xxxxxxxx wrote:

Hello,

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.

Best wishes,
Sebastian

On 25/01/2016 at 11:43, xxxxxxxx wrote:

Hey Sebastian,

thanks for the tip, didn't know it was an actual copy of the c++ sdk.

greetings, 
neon