Animate parts of a figure

def rotate_z(x, y, z, angle):
w = x+1jy
return np.real(np.exp(1j
angle)w), np.imag(np.exp(1jangle)*w), z

I am generating two 3D-objects:
obj_3d_1 = go.Figure({“data”: dash_obj_in_3dmesh.geometry_tools.import_geometry([obj_1]),})
obj_3d_2 = go.Figure({“data”: dash_obj_in_3dmesh.geometry_tools.import_geometry([obj_1]),})

Creating frames for the first object:
frames=
for angle in np.arange(0, 6.26, 0.1):
aux_data = obj_3d_1[“data”][0]
aux_data[‘x’], aux_data[‘y’], aux_data[‘z’] = rotate_z(obj_3d_1[“data”][0][‘x’],obj_3d_1[“data”][0][‘y’],obj_3d_1[“data”][0][‘z’],angle)
frame = go.Frame(data=[go.Mesh3d(x=aux_data[‘x’], y=aux_data[‘y’], z=aux_data[‘z’])],)
frames.append(frame)
obj_3d_1.update(frames = frames)

Combining both objects:
all_obj_3d_data = [obj_3d_1[“data”][0], obj_3d_2[“data”][0]]

Creating a new figure with both objects:
fig = go.Figure(data = all_obj_3d_data, layout = plot_layout)

app = Dash(name)
app.layout = html.Div([dcc.Graph(figure=fig)])

When I add the following layout to the first object it is not shown in the figure (independent where it is added)
obj_3d_1.update_layout(updatemenus=[dict(type=‘buttons’,
showactive=False,
y=0.1,
x=1.05,
xanchor=‘left’,
yanchor=‘top’,
#pad=dict(t=1),
buttons=[dict(label=‘Play’,
method=‘animate’,
args=[None, dict(frame=dict(duration=100, redraw=True),
transition_duration=10,
fromcurrent=True,
mode=‘immediate’
)])
]
)])

And I am looking for a solution that the first object is rotating without any “Play”-button. It should rotate permanent.