I have a gui.GeDialog with a few Edit Text boxes and I wanted to drop textures from my Windows Explorer on there and get the full path of each texture, just like in the texture field on a material.
I found a couple of useful posts approaching the same question, but the solution seems to be directed to more experienced Python users, as they have only parts of code, not a full working example.
I'd appreciate if someone could share an example on how to do that in this dialog here:
import c4d
class MyDialog(c4d.gui.GeDialog):
def CreateLayout(self):
self.AddEditText(1000, c4d.BFH_SCALEFIT, initw=0, inith=0)
self.AddEditText(1001, c4d.BFH_SCALEFIT, initw=0, inith=0)
self.AddEditText(1002, c4d.BFH_SCALEFIT, initw=0, inith=0)
self.AddEditText(1003, c4d.BFH_SCALEFIT, initw=0, inith=0)
return True
def main():
dialog = MyDialog()
dialog.Open(dlgtype=c4d.DLG_TYPE_MODAL_RESIZEABLE, defaultw=500, defaulth=500)
if __name__ == '__main__':
main()