Metadata-Version: 2.4
Name: viser-keyframe
Version: 1.0.18
Summary: 3D visualization + Python, with multi-column GUI layouts for keyframe editors
Project-URL: GitHub, https://github.com/cymcymcymcym/viser_keyframe_ui
License: MIT
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.8
Requires-Dist: imageio<3.0.0,>=2.0.0
Requires-Dist: msgspec<1.0.0,>=0.18.6
Requires-Dist: nodeenv<2.0.0,>=1.9.1
Requires-Dist: numpy<3.0.0,>=1.0.0
Requires-Dist: requests<3.0.0,>=2.0.0
Requires-Dist: rich<15.0.0,>=13.3.3
Requires-Dist: tqdm<5.0.0,>=4.0.0
Requires-Dist: trimesh<5.0.0,>=3.21.7
Requires-Dist: typing-extensions>=4.0.0
Requires-Dist: websockets<16.0.0,>=13.1
Requires-Dist: yourdfpy<1.0.0,>=0.0.53
Provides-Extra: dev
Requires-Dist: hypothesis[numpy]; extra == 'dev'
Requires-Dist: opencv-python<5.0.0,>=4.0.0.21; extra == 'dev'
Requires-Dist: pre-commit==3.3.2; extra == 'dev'
Requires-Dist: psutil<8.0.0,>=5.9.5; extra == 'dev'
Requires-Dist: pyright>=1.1.308; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: ruff>=0.9.3; extra == 'dev'
Provides-Extra: examples
Requires-Dist: gdown>=4.6.6; extra == 'examples'
Requires-Dist: matplotlib>=3.7.1; extra == 'examples'
Requires-Dist: opencv-python; extra == 'examples'
Requires-Dist: pandas; extra == 'examples'
Requires-Dist: plotly>=5.21.0; extra == 'examples'
Requires-Dist: plyfile; extra == 'examples'
Requires-Dist: pyliblzfse>=0.4.1; (platform_system != 'Windows') and extra == 'examples'
Requires-Dist: robot-descriptions>=1.18.0; extra == 'examples'
Requires-Dist: torch>=1.13.1; extra == 'examples'
Requires-Dist: tyro<1.0.0,>=0.2.0; extra == 'examples'
Description-Content-Type: text/markdown

# viser-keyframe

[![PyPI version](https://img.shields.io/pypi/v/viser-keyframe.svg)](https://pypi.org/project/viser-keyframe/)
[![Python versions](https://img.shields.io/pypi/pyversions/viser-keyframe.svg)](https://pypi.org/project/viser-keyframe/)

A fork of [viser](https://github.com/nerfstudio-project/viser) with additional features for building keyframe editors and multi-column GUI layouts.

## What's New in viser-keyframe

This fork adds the following features on top of the original viser:

### 1. Multi-Column GUI Layouts

Create side-by-side control panels with `gui.add_columns()`:

```python
import viser

server = viser.ViserServer()

# Create a 3-column layout
columns = server.gui.add_columns(3)

# Add controls to each column
with columns.column(0):
    server.gui.add_slider("Left Arm", 0, 1, 0.5)
    
with columns.column(1):
    server.gui.add_button("Center")
    
with columns.column(2):
    server.gui.add_slider("Right Arm", 0, 1, 0.5)
```

You can also specify custom column widths:

```python
columns = server.gui.add_columns(3, widths=[0.3, 0.4, 0.3])
```

### 2. Slider Precision Fix

Fixes floating-point display noise in sliders (e.g., `0.30000000001` → `0.3`), with improved input validation and dynamic width for high-precision values.

## Installation

```bash
pip install viser-keyframe
```

## Usage

This package is a drop-in replacement for viser. Just install it and import as usual:

```python
import viser

server = viser.ViserServer()

# All original viser features work
server.scene.add_frame("/world")

# Plus the new multi-column layout
columns = server.gui.add_columns(2)
```

## Original Viser Features

All features from the original viser are included:

- API for visualizing 3D primitives
- GUI building blocks: buttons, checkboxes, text inputs, sliders, etc.
- Scene interaction tools (clicks, selection, transform gizmos)
- Programmatic camera control and rendering
- Web-based client for easy use over SSH

For full documentation, see the original viser docs: https://viser.studio

## Credits

This package is a fork of [viser](https://github.com/nerfstudio-project/viser) by the Nerfstudio team.

To cite the original viser project:

```bibtex
@misc{yi2025viser,
      title={Viser: Imperative, Web-based 3D Visualization in Python},
      author={Brent Yi and Chung Min Kim and Justin Kerr and Gina Wu and Rebecca Feng and Anthony Zhang and Jonas Kulhanek and Hongsuk Choi and Yi Ma and Matthew Tancik and Angjoo Kanazawa},
      year={2025},
      eprint={2507.22885},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2507.22885},
}
```

## License

MIT License (same as original viser)
