Data Visualization in Blender and Python




[ad_1]

In this tutorial we’ll create a script that reads data from CSV files(comma separate values) and converts it into a list of data that we can use to generate a bar graph. No prior python experience is needed to follow along, but I don’t go over every aspect of the fundamentals of programming, so some experience would really help in understanding everything.

You can download the resource files for this tutorial here – https://cgmasters.net/tutorials/Bar_Graph_Resource_Files.zip

If you like this tutorial and want to check out our more comprehensive training, check out our latest course The Blender Encyclopedia here – https://cgmasters.net/training-courses/the-blender-encyclopedia/

Source


[ad_2]

Comment List

  • CG Masters
    December 2, 2020

    such an awesome tutorial, I have also joined the blender encyclopedia course on udemy and its really awesome.

  • CG Masters
    December 2, 2020

    Please help me understand the practical application for this. Can it be realtime? Can it be hosted? Why is this useful?

  • CG Masters
    December 2, 2020

    Great tutorial, are you planning on more, maybe doing stuff with pandas and numpy for more complex data sets?

  • CG Masters
    December 2, 2020

    Koniu to film dla Ciebie 😀

  • CG Masters
    December 2, 2020

    I have made an add-on for this, if you want to check it out there is a video with links on my youtube channel!

  • CG Masters
    December 2, 2020

    really really excellent tutorial
    tip: to automatically delete all objects before executing the code you can add this after import csv and import bpy
    for o in bpy.context.scene.objects:
    o.select_set(True)
    bpy.ops.object.delete()

  • CG Masters
    December 2, 2020

    Nice video.

    I have an article about Python data visualization with Maptlotlib in Jupyter Notebook for Absolutely Beginner.
    You can check this link

    https://medium.com/@bahrulsg/data-visualization-with-matplotlib-for-absolute-beginner-part-i-655275855ec8

    Thank you.

  • CG Masters
    December 2, 2020

    This is great! Thanks! I'm doing something similar right now and having issues scaling my objects from csv file column values. I have existing objects I need to iterate through and apply the scale from the complementing row value in a csv. I'm stuck. I'm probably over thinking it. Any tips? Thanks! https://blender.stackexchange.com/questions/187717/data-visualization-iterate-through-a-collection-of-objects-and-set-z-scale-to

  • CG Masters
    December 2, 2020

    thanks for sharing, couldn't' you just grab each plane instead of each vertex of each plane?
    Nice way to read csv file and put it in a python list, I will use it 😉

  • CG Masters
    December 2, 2020

    Hi Chris, is this tutorial in the blender encyclopedia udemy course?

  • CG Masters
    December 2, 2020

    I feel this is essential for understanding animation nodes, am i right Chris? Anyway do you know anything about the development of everything nodes? what exactly is that?

  • CG Masters
    December 2, 2020

    Make Animated Charts like this and bring them to life
    https://www.youtube.com/watch?v=VESLE8mLw1s

  • CG Masters
    December 2, 2020

    Thanks Chris. This is a great video.

  • CG Masters
    December 2, 2020

    What is you instagram id….i want to tag you in a corvette post😁

  • CG Masters
    December 2, 2020

    Hi Chris. What a strange word parentheses … The python script which creates everything like in Finished_Graph.blend example. May be it'll help somebody.

  • CG Masters
    December 2, 2020

    THIS. IS. GREAT! Thank you Chris! Hope all is well!

  • CG Masters
    December 2, 2020

    I am curious as to why you moved the planes in the same way you would in edit mode (leaving the origins on the cursor), but moved the text like you would in object mode (which carried the origins with the text).
    Is there a particular reason you did this? I was replicating this for my own Bar Graph script and started out using bpy.ops.transform.translate before I had realized I'd deviated.

  • CG Masters
    December 2, 2020

    Is there a way to get the python code of a scene your working on?

    I assume that when you are doing your usuals like deleting the default cube, adding your own cube, extruding, joining etc that there is a code being generated within blender.

    How can I get those code?

  • CG Masters
    December 2, 2020

    We need to animate this chart in next tutorial

  • CG Masters
    December 2, 2020

    blender is alive because of addons without addons it is just like somewhat upgraded skecthup for modelling

  • CG Masters
    December 2, 2020

    Thank you for the awesome tutorial! I am also curious about how to make the axis and grids.

  • CG Masters
    December 2, 2020

    BTW Chris – will there be car modeling course, updated to 2.8x?

  • CG Masters
    December 2, 2020

    now, make an addon of it 😀

  • CG Masters
    December 2, 2020

    Very awesome, thank you !!!

  • CG Masters
    December 2, 2020

    Great tutorial! About radians, is quite normal use them for trigonometrics calculation.

  • CG Masters
    December 2, 2020

    This is cool, I would be happy to see more scripting in Blender tutorials.
    Youtube compression seems to really struggle with that dark pinkish-red over dark grey color that those python commands have, even in full screen 1080 they aren't very clear.

  • CG Masters
    December 2, 2020

    a couple weeks ago I was looking for this exact same thing 😙

  • CG Masters
    December 2, 2020

    Thank you and THANK YOU!!! This is was an amazing lesson dear friend, that helps me to go further to python language.

  • CG Masters
    December 2, 2020

    File "C:Users…DesktopBar_Graph_Resource_Filesuntitled.blendGraphGenerator", line 3

    SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated UXXXXXXXX escape

    location: <unknown location>:-1

  • CG Masters
    December 2, 2020

    I have just enlisted on your course Blender 2.8 Encyclopedia on Udemy. As a beginner is it enough to start only with it?

  • CG Masters
    December 2, 2020

    👍👍👍

  • CG Masters
    December 2, 2020

    Is this going to be in the blender encyclopedia also?

  • CG Masters
    December 2, 2020

    migraine kicking in 4 3 2

    Migraine – hello, Juju….

  • CG Masters
    December 2, 2020

    Scripting is something I've been willing to do for a long time so thanks for this amazing tutorial ! And cuz you ask, yep I would love some more videos on that topic 😁 thanks and keep up the good work !

  • CG Masters
    December 2, 2020

    Awesome. I think that's a promising feature of Blender for creating wonderful infographics.

  • CG Masters
    December 2, 2020

    Great tutorial!

Write a comment