|
1 | 1 | bl_info = { |
2 | 2 | "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), |
5 | 6 | "blender": (4, 0, 0), |
6 | 7 | "location": "View3D > Sidebar > QV Pen Importer", |
7 | 8 | "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 | 63 | soft_max=10.0 |
63 | 64 | ) |
64 | 65 |
|
| 66 | +# データ準備説明の表示/非表示を切り替えるプロパティ |
| 67 | +bpy.types.Scene.show_data_preparation = bpy.props.BoolProperty( |
| 68 | + name="データの準備についての説明を表示", |
| 69 | + description="QVペンデータの準備方法に関する説明を表示/非表示", |
| 70 | + default=False |
| 71 | +) |
| 72 | + |
65 | 73 | # JSON ファイルを選択するオペレーター |
66 | 74 | class IMPORT_OT_JSONFile(bpy.types.Operator): |
67 | 75 | bl_idname = "import.json_file" |
@@ -225,6 +233,28 @@ def draw(self, context): |
225 | 233 |
|
226 | 234 | layout.prop(scene, "json_filepath") |
227 | 235 | 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 | + |
228 | 258 | layout.separator() |
229 | 259 |
|
230 | 260 | # 曲線設定 |
@@ -273,6 +303,7 @@ def unregister(): |
273 | 303 | del bpy.types.Scene.json_solidify_thickness |
274 | 304 | del bpy.types.Scene.json_emission_strength |
275 | 305 | del bpy.types.Scene.json_shader_type |
| 306 | + del bpy.types.Scene.show_data_preparation |
276 | 307 |
|
277 | 308 | if __name__ == "__main__": |
278 | 309 | register() |
0 commit comments