so I have plotted a 3d plot with this data, with a,b,c some array
data=[
{
type: ‘scatter3d’,
mode : “lines+markers”,
x: a,
y: b,
z: c},
{

Now lets say I have the data for 5 different 3d line lets say like [a1,b1,c1] , [a2,b2,c2]…[a5,b5,c5] . all a,b,c 's are arrays. How do I update the plot to now show those 5 different 3d plot. I think I have to use the restyle command i.e https://plot.ly/javascript/plotlyjs-function-reference/#plotlyrestyle but I can’t figure out the update variable .

Plotly.restyle(gd, {
x: [
[/* new x coords for 1st trace */],
....
[/* new x coords for nth trace */]
],
y: [
[/* new y coords for 1st trace */],
....
[/* new y coords for nth trace */]
],
z: [
[/* new z coords for 1st trace */],
....
[/* new z coords for nth trace */]
]
})

I created an account just to say that this was the fix I had been looking for. Thanks etienne!
I am updating a 3d surface plot. X and Y were 1d and Z was 2d when creating the graph initially, but I need to wrap them all in an additional array when updating.