Skip to content

Commit

Permalink
Sync example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Jul 26, 2024
1 parent d4f0b3a commit aa3ea84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/source/examples/02_gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Examples of basic GUI elements that we can create, read from, and write to.
initial_value=0,
disabled=True,
)
gui_slider = server.gui.add_slider(
"Slider",
min=0,
Expand All @@ -38,6 +37,7 @@ Examples of basic GUI elements that we can create, read from, and write to.
initial_value=0,
disabled=True,
)
gui_progress = server.gui.add_progress_bar(25, animated=True)
with server.gui.add_folder("Editable"):
gui_vector2 = server.gui.add_vector2(
Expand Down Expand Up @@ -119,6 +119,8 @@ Examples of basic GUI elements that we can create, read from, and write to.
point_shape="circle",
)
gui_progress.value = float((counter % 100))
# We can use `.visible` and `.disabled` to toggle GUI elements.
gui_text.visible = not gui_checkbox_hide.value
gui_button.visible = not gui_checkbox_hide.value
Expand Down
2 changes: 0 additions & 2 deletions docs/source/examples/23_smpl_visualizer_skinned.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ See here for download instructions:
# Match transform control gizmos to joint positions.
for i, control in enumerate(gui_elements.transform_controls):
control.position = smpl_outputs.T_parent_joint[i, :3, 3]
print(control.position)
skinned_handle.bones[i].wxyz = tf.SO3.from_matrix(
smpl_outputs.T_world_joint[i, :3, :3]
).wxyz
Expand Down

0 comments on commit aa3ea84

Please sign in to comment.