Upon RMB a TreeView item, you'll get the default Remove and Remove All.
I want to remove them but I'm having problem doing so.
Here is the working code so far:
def CreateContextMenu(self, root, userdata, obj, lColumn, bc):
bc = None # Delete the existing base container
bc = c4d.BaseContainer() # Create a blank one
bc.SetString(1231245, "Hello World!") # Add a new entry
As said in the documentation here you have to remove those entry in the basecontainer provided. You can override bc content like this.
for that you have several option
# one of those solution should work
# 1 - flush the BaseContainer
# 2 - Remove data using our API
# 3- Remove data using Python
Thanks! It works as expected