Hi i’m trying to get objects by name and properties but it doesnt work. Whats wrong with my code?
for obj in objs: if 'MenuItem' in obj and obj == active_item: print("It Worked!") else: print("Fuck shit!!")
Name of property is ‘MenuItem’ and variable ‘active_item’ is exactly the same as the object name. If i search only for the property name it works. No error in console, btw.