← Back to Skills Marketplace
renhaosu2024

3d Molecule Ray Tracer

by renhaosu2024 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
279
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install 3d-molecule-ray-tracer
Description
Generate photorealistic rendering scripts for PyMOL and UCSF ChimeraX to create publication-quality molecular visualizations. Supports ray-tracing, depth of...
README (SKILL.md)

3D Molecule Ray Tracer

Advanced molecular visualization tool that generates professional-grade rendering scripts with cinematic effects for creating publication-quality and cover-worthy molecular images.

Features

  • Multi-Software Support: Generate scripts for PyMOL and UCSF ChimeraX
  • Photorealistic Rendering: Ray-tracing, depth of field, ambient occlusion
  • Cinematic Lighting: Studio, outdoor, and dramatic lighting presets
  • Publication Presets: Pre-configured settings for journals, covers, and presentations
  • Customizable Scenes: Fine control over camera, materials, and atmosphere

Usage

Basic Usage

# Generate PyMOL script with default settings
python scripts/main.py --pdb 1mbn

# Generate cover-quality render script
python scripts/main.py --pdb 1mbn --preset cover

# Generate ChimeraX script
python scripts/main.py --software chimerax --pdb 1abc --preset publication

Parameters

Parameter Type Default Required Description
--software str pymol No Target rendering software (pymol/chimerax)
--pdb str None Yes PDB file path or 4-letter PDB ID
--preset str standard No Rendering preset (standard/cover/publication/cinematic)
--style str cartoon No Molecular representation style
--resolution int from preset No Output resolution in pixels
--bg-color str white No Background color
--ao-on flag False No Enable ambient occlusion
--shadows flag False No Enable shadow casting
--fog float from preset No Fog density (0-1)
--dof-on flag False No Enable depth of field
--dof-focus str center No DOF focus point
--dof-aperture float from preset No Aperture size (higher = more blur)
--lighting str from preset No Lighting preset
--output str auto No Output script filename

Advanced Usage

# Cover-quality render with depth of field
python scripts/main.py \
  --software pymol \
  --pdb 1mbn \
  --preset cover \
  --dof-on \
  --dof-focus "A:64" \
  --dof-aperture 2.0 \
  --style surface \
  --output cover_render.pml

# Cinematic 4K render
python scripts/main.py \
  --software pymol \
  --pdb complex.pdb \
  --preset cinematic \
  --resolution 3840 \
  --ao-on \
  --shadows \
  --lighting cinematic

Rendering Presets

Preset Resolution Ray Trace DOF AO Shadows Use Case
Standard 2400px Quick high-quality
Cover 3000px Journal covers
Publication 2400px Manuscript figures
Cinematic 3840px Presentations

Supported Software

Software Best For Features
PyMOL Traditional rendering, ease of use Ray tracing, shadows, AO
ChimeraX Modern effects, large structures PBR lighting, ambient occlusion, VR

Technical Difficulty: MEDIUM

⚠️ AI自主验收状态: 需人工检查

This skill requires:

  • Python 3.8+ environment
  • PyMOL 2.5+ or ChimeraX 1.5+ installed separately
  • Understanding of molecular visualization concepts

Dependencies

Required Python Packages

pip install -r requirements.txt

External Software

Risk Assessment

Risk Indicator Assessment Level
Code Execution Python scripts executed locally Medium
Network Access Fetches PDB structures from RCSB (optional) Low
File System Access Writes rendering scripts Low
Instruction Tampering Standard prompt guidelines Low
Data Exposure No sensitive data exposure Low

Security Checklist

  • No hardcoded credentials or API keys
  • No unauthorized file system access (../)
  • Output does not expose sensitive information
  • Prompt injection protections in place
  • Input file paths validated
  • Output directory restricted to workspace
  • Script execution in sandboxed environment
  • Error messages sanitized
  • Dependencies audited

Prerequisites

# Python dependencies
pip install -r requirements.txt

# Install PyMOL or ChimeraX separately

Output Example

✓ Rendering script generated: /path/to/cover_render.pml

Configuration:
  Software: pymol
  Preset: cover
  Style: cartoon
  Resolution: 3000px
  Depth of Field: ON
  Ambient Occlusion: ON
  Shadows: ON
  Lighting: cinematic

To render:
  pymol cover_render.pml
  # Or within PyMOL:
  @ cover_render.pml

Evaluation Criteria

Success Metrics

  • Successfully generates valid PyMOL/ChimeraX scripts
  • Scripts execute without errors in target software
  • Output images meet quality standards
  • Handles edge cases gracefully

Test Cases

  1. Basic Functionality: Generate script for PDB ID → Valid script created
  2. File Input: Generate script from PDB file → Valid script created
  3. Preset Override: Custom parameters override preset → Correct settings applied
  4. Both Software: Generate for PyMOL and ChimeraX → Both scripts valid

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-15
  • Known Issues: None
  • Planned Improvements:
    • Blender integration
    • AI-assisted composition suggestions
    • Real-time preview mode

References

See references/ for:

  • PyMOL-specific rendering techniques
  • ChimeraX lighting documentation
  • Colorblind-friendly palettes
  • Journal submission guidelines

Limitations

  • Static Images Only: Generates scripts for still images, not animations
  • Software Dependency: Requires separately installed PyMOL or ChimeraX
  • Rendering Time: High-quality renders can take 10-30 minutes per image
  • Learning Curve: Advanced effects require understanding of photography concepts
  • File Sizes: High-res images can be 10-50 MB each
  • No Automatic Layout: Creates single images; figure assembly requires separate tools

💡 Tip: For creating multiple related figures, save your complete scene setup (lighting, camera, colors) as a PyMOL session file (.pse) or ChimeraX session (.cxs), then modify only the specific elements needed for each figure. This ensures consistency across figure panels.

Usage Guidance
This skill appears coherent with its stated purpose, but take these precautions before use: (1) inspect the generated .pml/.cxc scripts before running them — they will be executed by PyMOL/ChimeraX and can contain arbitrary commands; (2) if you provide a 4-letter PDB ID the generated script will call PyMOL's fetch (network access) — be aware of network activity; (3) run rendering commands in a sandbox or on a non-sensitive workstation if you are unsure; (4) ensure PyMOL/ChimeraX and Python dependencies are installed from trusted sources; (5) if you need higher assurance, share the full scripts/main.py for a line-by-line review (the provided file was truncated in the listing).
Capability Analysis
Type: OpenClaw Skill Name: 3d-molecule-ray-tracer Version: 0.1.0 The skill bundle is a utility for generating molecular visualization scripts for PyMOL and ChimeraX. It is classified as suspicious because it possesses risky capabilities, specifically the generation of executable scripts and the ability to write files to user-specified paths without adequate input validation in 'scripts/main.py'. While these functions are aligned with the stated purpose in 'SKILL.md' and no evidence of intentional malice (such as data exfiltration or backdoors) was found, the lack of sanitization on the '--pdb' and '--output' arguments represents a vulnerability that could be exploited to overwrite arbitrary files or inject commands into the target visualization software.
Capability Assessment
Purpose & Capability
Name and description (generate rendering scripts for PyMOL/ChimeraX) align with the included Python script and SKILL.md. There are no surprising required env vars, binaries, or unrelated dependencies declared.
Instruction Scope
SKILL.md and the Python code generate PyMOL/ChimeraX scripts and accept either local PDB file paths or 4-character PDB IDs. The generated PyMOL script uses the PyMOL 'fetch' command for PDB IDs (which triggers network access when the script is run). Instructions do not request unrelated files, credentials, or broad system data, but you should inspect generated scripts before executing them because they will run inside PyMOL/ChimeraX and can execute arbitrary commands in those applications.
Install Mechanism
No install specification — this is instruction/script-only plus a local Python file. That is the lowest-risk pattern for an extension of this type.
Credentials
The skill requests no environment variables or credentials. The only external interaction is optional PDB fetching via PyMOL/ChimeraX (expected for the purpose).
Persistence & Privilege
always is false; the skill does not request persistent platform privileges or modify other skills. It runs locally and generates scripts that the user may execute with PyMOL/ChimeraX.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install 3d-molecule-ray-tracer
  3. After installation, invoke the skill by name or use /3d-molecule-ray-tracer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release of 3d-molecule-ray-tracer skill. - Generates photorealistic rendering scripts for PyMOL and UCSF ChimeraX, supporting ray-tracing, depth of field, ambient occlusion, and cinematic lighting. - Includes presets for publication, cover, and cinematic-quality images. - Offers fine control over camera, materials, lighting, and scene parameters. - Requires separate installation of PyMOL or ChimeraX and Python 3.8+. - Intended for creating high-impact, publication-quality molecular visualizations.
Metadata
Slug 3d-molecule-ray-tracer
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 3d Molecule Ray Tracer?

Generate photorealistic rendering scripts for PyMOL and UCSF ChimeraX to create publication-quality molecular visualizations. Supports ray-tracing, depth of... It is an AI Agent Skill for Claude Code / OpenClaw, with 279 downloads so far.

How do I install 3d Molecule Ray Tracer?

Run "/install 3d-molecule-ray-tracer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 3d Molecule Ray Tracer free?

Yes, 3d Molecule Ray Tracer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 3d Molecule Ray Tracer support?

3d Molecule Ray Tracer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 3d Molecule Ray Tracer?

It is built and maintained by renhaosu2024 (@renhaosu2024); the current version is v0.1.0.

💬 Comments