Hi, it may be a foolish task but I would like to have different value in each row after I make the selection in the dropdown menu. This way it displays same value for every row. Could you help me with that?
class ListView(c4d.gui.TreeViewFunctions):
def __init__(self):
self.selectedEntry = 1000
def GetDropDownMenu(self, root, userdata, obj, lColumn, menuInfo):
doc = c4d.documents.GetActiveDocument()
menuInfo["entry"] = self.selectedEntry
menuInfo["menu"][1000] = "Material 1"
menuInfo["menu"][1001] = "Material 2"
menuInfo["menu"][1002] = "Material 3"
menuInfo["menu"][1003] = "Material 4"
menuInfo["state"] = int(menuInfo["state"])
def SetDropDownMenu(self, root, userdata, obj, lColumn, entry):
self.selectedEntry = entry
print(f"User selected the entry with the ID: {entry}")