From 79a9a774ad12d1c905e8ebbfbc9b295cca767585 Mon Sep 17 00:00:00 2001 From: Hansly Saw <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 8 May 2022 20:55:48 +0800 Subject: [PATCH] Added image viewer feature. --- BlenderRender.ipynb | 64 +++++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 17 deletions(-) diff --git a/BlenderRender.ipynb b/BlenderRender.ipynb index 662be24..9318224 100644 --- a/BlenderRender.ipynb +++ b/BlenderRender.ipynb @@ -110,8 +110,8 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "\u001b[1mStatus: \t\u001b[0mStarting render of file test.blend…\n", "src/tcmalloc.cc:283] Attempt to free invalid pointer 0x7fc749c1e040 \n" @@ -149,7 +149,7 @@ " return False\n", " else: \n", " if configuration.blend_fileName == None: \n", - " raise ImportError(formatting.font.bold + 'Input Blender file name is missing. ' + formatting.clear + 'It is a required field. ')\n", + " raise ImportError(formatting.font.bold + 'The file name for the Blender file is missing. ' + formatting.clear + 'It is a required field. ')\n", " else: \n", " return True\n", "\n", @@ -200,6 +200,8 @@ " else: \n", " !blender -b {configuration.blend_fileName} -o ./output_ -E {configuration.renderer} -F {configuration.output_fileFormat} -x 1 -f {configuration.frame} --cycles-device {configuration.device}\n", "\n", + " info.status('Render of file ' + configuration.blend_fileName + ' has completed.')\n", + "\n", " if checkInvalidUploadProceed(): \n", " start_render()\n", "\n", @@ -212,16 +214,10 @@ ] }, { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "Hk2D1RK3WqVV" - }, - "outputs": [], + "cell_type": "markdown", + "metadata": {}, "source": [ - "\n", - "\n", - "!blender -b $filename -o ./test_ -E $renderer -x 1" + "