Drop down String

I am trying to connect to a drop down input. The items I am trying to reference are strings. This is the code I used to set variables equal to the selected input.

itemValue = event.source.parent.getComponent(‘Blender_TBL’).data

When I call the variable I get the following error:

ValueError invalid literal for_int_: Store

thanks!

If you are referencing a drop down component then you want to reference the selectedStringValue or selectedValue properties. Something like:itemValue = event.source.parent.getComponent("Dropdown").selectedStringValue

When I was calling my variable I used %d instead of %s