Skip to main content

Create a Python script for Blender from Atoms of ASE.

Project description

cif,xyz,VASPの構造ファイルをBeldnerに取り込むためのライブラリ
Blender上で動作するPythonスクリプトを生成する.

Webアプリ版

基本的には mk-blender-scr をインストールせずともWebアプリのみを使用すれば良い.

インストール

>>> pip install mk-blender-scr

ドキュメント

ドキュメントはこちら .

基本的な使用方法

from mk_blender_src import create,BallAndStick,SpaceFilling,Stick,Animation
from ase.io import read

atoms = read("CONTCAR") # CONTCAR is vasp-format file
create("BallAndStick.py",BallAndStick(atoms))

BallAndStick.py をBlender上で実行すると,Ball-Stickスタイルの3Dモデルが作成される.

スタイルは

  • BallAndStick (球棒)

  • SpaceFilling (空間充填)

  • Stick (棒)

  • Animation (アニメーション(空間充填で再現される))

より詳細な使用方法は ドキュメント を参照する.

インポート可能な構造ファイル

ASEのAtomsオブジェクトを作成する必要があるため,VASP(POSCAR,CONTCAR), xyz, cif等を読み込むことができる.
詳細なフォーマットは以下を参照

Pythonバージョン

Python3.8,Python3.10での動作確認済

依存ライブラリ

以下の条件下で安定的な動作が確認されている.
nglview==3.0.3の場合,ipywidgetsは8.0以下である必要があることが知られている.

Blenderバージョン

Blender2.9, Blender3.0 での動作確認済

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mk-blender-scr-1.0.8.tar.gz (25.6 kB view details)

Uploaded Source

File details

Details for the file mk-blender-scr-1.0.8.tar.gz.

File metadata

  • Download URL: mk-blender-scr-1.0.8.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for mk-blender-scr-1.0.8.tar.gz
Algorithm Hash digest
SHA256 2ee74fae0b64a1793d98a12d9028c4363457210be9d904e630a5488ad80cc172
MD5 a4e2541c8bdb44156f75211f577c62f3
BLAKE2b-256 1ef37d77041f3064929b4261e7a9c6c23866e718aca68e8d16b8b4f5a3c678cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page