Using an opacity array in Scatter3d

Hello,

I am trying to make a 3d scatter plot where each data point uses different opacity. I have been trying to achieve this as shown in the script below, where o is an array with a size of x, y, and v, but it seems to work with a single number only. Does anyone have any suggestions to go around with this?

Thank you.

go.Scatter3d(x=x, y=y, z=v, mode=โ€˜markersโ€™,
marker=dict(size=marker_size, color=v, colorscale=colorscale,
cauto=False, cmin=cmin, cmax=cmax,
opacity=o)