Skip to main content
Participating Frequently
November 21, 2023
Answered

After effects dropdown menu items hidden after 9th item

  • November 21, 2023
  • 2 replies
  • 273 views

I am creating a dropdown menu to select a layer and make it visible according to dropdown selection. All layers are in a saperate comp and I have assigned a dropdown menu on saperate layer. I have 12 layers in comp for which i am using dropdown menu. 

From 1 to 9 items in dropdown menu, there is no issue, after 9th I cant see selected layer. whatever item I select from dropdown after 9, its hidden

This topic has been closed for replies.
Correct answer Dan Ebberts

Your parseInt(thisLayer.name[0]) is only looking at the first character of the layer name. I think it will work if you change it to just parseInt(thisLayer.name).

2 replies

Participating Frequently
November 21, 2023

 

 

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
November 21, 2023

Your parseInt(thisLayer.name[0]) is only looking at the first character of the layer name. I think it will work if you change it to just parseInt(thisLayer.name).

Participating Frequently
November 21, 2023

I am using below script for the same

select = comp("new charcter sheet_Front_2").layer("Head").effect("Hair Style options")("Menu");
(select == parseInt(thisLayer.name[0])) ? value : 0;