I’m really excited to start learning COMPAS and though the best way to get my head around was to port a couple of sketches I did in Processing.
To get me started I would like to know how to draw some points and lines in Blender, play with it, connect them, etc…
I see COMPAS has different classes named
draw_points. Could someone kindly explain:
- if they are appropriate to draw points (in Blender)
- how they differ
- how to use them
I tried the following (extracting vertices from a .obj and display them as points):
import compas from compas_blender import utilities from compas_blender.artists import NetworkArtist from compas.datastructures import Network # make a network from sample data network = Network.from_obj(compas.get("C:/Users/solub/Desktop/rocket.obj")) xyz = network.get_vertices_attributes(('x', 'y', 'z')) utilities.draw_points(d)
… but got a
AttributeError: 'int' object has no attribute 'get' . Does this mean I have to store the vertices in a dictionnary or convert the list array to another data type ?