Scene.getItem() part returns the item on which you want to set the opacity. There you need to pass in the correct
itemId which you can get from the inspector menu. Then the
setOpacity() method accepts a number between 0 and 1.