Skip to content

Commit 60f6fdb

Browse files
author
hiyakake
committed
データ準備説明の表示機能を追加と、プラグイン情報を更新
- UIに折りたたみ可能な「データの準備について」セクションを追加 - URLをクリック可能なオペレーターを実装 - プラグインのバージョンを(0, 3)に更新 - 作者表記を微調整 - GitHubリポジトリのウェブサイト情報を追加
1 parent 44dbc02 commit 60f6fdb

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

main.py

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
bl_info = {
22
"name": "Import QV-Pen Line Data to Blender",
3-
"author": "Hiyakake/ひやかけ",
4-
"version": (0, 2),
3+
"author": "ひやかけ/Hiyakake",
4+
"website": "https://github.com/hiyakake/Import-QV-Pen-Line-Data-to-Blender",
5+
"version": (0, 3),
56
"blender": (4, 0, 0),
67
"location": "View3D > Sidebar > QV Pen Importer",
78
"description": "This plugin imports QV-Pen line data to Blender. Export QV-Pen data from the world where Dolphiiiin's \"QvPen Exporter / Importer\" (https://booth.pm/ja/items/6499949) is installed, and use \"QvPen Export Formatter\" (https://dolphiiiin.github.io/qvpen-export-formatter/) to convert it into a JSON file. This tool can import the converted JSON file as a mesh path. The color and thickness are inherited. The coordinates correspond to the location where the line is drawn on the VRC world.",
@@ -62,6 +63,13 @@
6263
soft_max=10.0
6364
)
6465

66+
# データ準備説明の表示/非表示を切り替えるプロパティ
67+
bpy.types.Scene.show_data_preparation = bpy.props.BoolProperty(
68+
name="データの準備についての説明を表示",
69+
description="QVペンデータの準備方法に関する説明を表示/非表示",
70+
default=False
71+
)
72+
6573
# JSON ファイルを選択するオペレーター
6674
class IMPORT_OT_JSONFile(bpy.types.Operator):
6775
bl_idname = "import.json_file"
@@ -225,6 +233,28 @@ def draw(self, context):
225233

226234
layout.prop(scene, "json_filepath")
227235
layout.operator("import.json_file", text="Select JSON File")
236+
237+
# データの準備について(折りたたみ可能なボックス)
238+
box = layout.box()
239+
row = box.row()
240+
row.prop(scene, "show_data_preparation", icon="DISCLOSURE_TRI_DOWN" if scene.show_data_preparation else "DISCLOSURE_TRI_RIGHT",
241+
icon_only=True, emboss=False)
242+
row.label(text="データの準備について")
243+
244+
if scene.show_data_preparation:
245+
column = box.column()
246+
column.scale_y = 0.7
247+
column.label(text="QV ペンのデータを Dolphiiiin 様作成の「QvPen Exporter / Importer」")
248+
column.label(text="(https://booth.pm/ja/items/6499949)が設置された")
249+
column.label(text="ワールドでエクスポートし、「QvPen Export Formatter」")
250+
column.label(text="(https://dolphiiiin.github.io/qvpen-export-formatter/)を")
251+
column.label(text="使ってJSONファイルに変換したものを本ツールに読み込ませると")
252+
column.label(text="メッシュ化したパスとしてインポートできます。")
253+
254+
# URLをクリック可能なオペレーターとして追加
255+
box.operator("wm.url_open", text="QvPen Exporter / Importer(Booth)").url = "https://booth.pm/ja/items/6499949"
256+
box.operator("wm.url_open", text="QvPen Export Formatter(Web)").url = "https://dolphiiiin.github.io/qvpen-export-formatter/"
257+
228258
layout.separator()
229259

230260
# 曲線設定
@@ -273,6 +303,7 @@ def unregister():
273303
del bpy.types.Scene.json_solidify_thickness
274304
del bpy.types.Scene.json_emission_strength
275305
del bpy.types.Scene.json_shader_type
306+
del bpy.types.Scene.show_data_preparation
276307

277308
if __name__ == "__main__":
278309
register()

0 commit comments

Comments
 (0)