Ladybug Tools for Sverchok and Blender

2

Comments

  • edited October 2020

    @edwinguerra said:
    It sounds like the 3d point visualizer is not installed? Download it and install like you installed blenderbim. https://github.com/uhlik/bpy/blob/master/space_view3d_point_cloud_visualizer.py

    In my case, it is installed. I tested and it is working. Just the shadows on the ground are all yellow.

  • edited October 2020

    @bitacovir I believe your issue is because transformations have been applied to the objects. Simply apply transformations and refresh the analysis (F5) and then it will work. This is a bug. It is now fixed: https://github.com/ladybug-tools/ladybug-blender/commit/6e9e4b32952ca01807609ddf22fd25a847e34809

    @bruno_perdigao From your picture, I'm guessing the issue is that you have not fully subdivided your plane enough. The analysis checks a sample point at the centroid of each face - so the reason it is all blue is perhaps because your ground plane is only one face and the centroid is obscured, hence a result of zero hours. Add a subdivision modifier (set to simple) and that would increase the resolution. If this isn't the issue, attach your file and I can help debug.

  • @Moult Thanks, I guess that was it. It was all blue even after I added the subdivision modifier, but then I started from scratch and it worked.

  • Ladybug Tools for Blender v0.0.201010 has been released with 12 new features / fixes. Ladybug Tools is a fully open source visual programming interface for environmental analysis of our built environment. Highlights include easier node inputs, more visualisation support, and improved user documentation. Help test it today! https://github.com/ladybug-tools/ladybug-blender

    New features / fixes:

    • You can now type in node inputs directly without needing to connect additional nodes for basic data input
    • Suppress error messages if you accidentally try to visualise non-geometry data
    • Fix bug where a crash occurs if you press undo after refreshing the visualisation
    • Nodes are now grouped into subcategories for easier browsing
    • Sexy icons added for all the nodes
    • Fix bug where objects with translations aren't correctly analysed
    • Fix bug where booleans were not correctly interpreted
    • Add support for vertex colours in visualisations (i.e. for continuous legends)
    • Add support for 2D point visualisations
    • Fix bug where text height was artificially doubled
    • New description tooltips for node inputs and outputs
    • New help icon for each node to describe the node behaviour
    CyrilbitacovirbrunopostlebasweinJesusbillJQLDarth_BlendercarlopavagonzalezesteveCGRand 1 other.
  • This is looking great

    Moult
  • edited October 2020

    Good work! My test is on my own home (one of the four blocks in the picture).
    A few suggestions:
    1) For the solar diagram generation it would be good to put all its components in a folder (or Collection) for the Outliner, to not overload with a long list of objects.
    2) It would be nice to have a feature to change the level of transparency for the ground plane. This way we could see that information overlapped with screenshots of the real context. I tried to do this with X-Ray Transparent Display in the last image. No sure if there is a Blender feature or a node to do that.
    3) The "Refresh" button in LB Out node should delete the previous generated geometry. At this moment it only creates new ladybug meshes and wireframes overlapping them.


    Location: Santiago, Chile.




    JQLbruno_perdigaoJesusbillleandrobp
  • 1) and 3) are on the to-do list. The LB Out node has quite a few improvements to be made :)

    As for 2), yeah I can't think of a one-button press way to do it. You can quickly toggle visibility via collections, or use x-ray, or in rendered mode use render layers and composite, but none of them are one-button press.

  • @Moult said:
    Ladybug Tools for Blender v0.0.201010 has been released with 12 new features / fixes. Ladybug Tools is a fully open source visual programming interface for environmental analysis of our built environment. Highlights include easier node inputs, more visualisation support, and improved user documentation. Help test it today! https://github.com/ladybug-tools/ladybug-blender

    This is cool stuff.
    Quick off-topic comment: That image looks like an installation meant for Burning Man!

    Moultbrunopostle
  • Hi @Moult

    I'm trying to follow these videos in the ladybug site learning materials:

    https://www.youtube.com/watch?list=PLruLh1AdY-Sho45_D4BV1HKcIz7oVmZ8v&v=hwErNMWeQVw&feature=emb_logo

    In video 1:

    Here is the log:

    Traceback (most recent call last):
    File "C:\Users\Joao\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\ladybug_tools\nodes\ladybug\LB_Out.py", line 33, in execute
    node.refresh()
    File "C:\Users\Joao\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\ladybug_tools\nodes\ladybug\LB_Out.py", line 60, in refresh
    self.process()
    File "C:\Users\Joao\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\ladybug_tools\nodes\ladybug\LB_Out.py", line 77, in process
    for geometries in socket.sv_get():
    File "C:\Users\Joao\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sverchok-master\core\sockets.py", line 124, in sv_get
    return self.convert_data(SvGetSocket(self, deepcopy), implicit_conversions)
    File "C:\Users\Joao\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sverchok-master\core\socket_data.py", line 121, in SvGetSocket
    raise SvNoDataError(socket, msg="not found in socket_data_cache")
    sverchok.core.socket_data.SvNoDataError: node LB Out (socket geometry) not found in socket_data_cache

    location: :-1

    I honestly can't tell what's happening. Can you help out somehow?

  • @JQL the red node is where the failure occurs, so to debug, I need to see the error message related to that. As you've connected more nodes, the error message you posted is actually an issue with the geometry viewer, complaining that it has no geometry.

    Do you mind attaching your EPW file, so I can see if I can recreate your error? Please open a bugreport here: https://github.com/ladybug-tools/ladybug-blender/issues and attach the EPW file to that bugreport.

    The mannequin node doesn't seem to exist. Those videos are for an older version of Ladybug Tools (Legacy), and what you see in Blender is the newer version. Maybe upstream removed it. Can you post in https://github.com/ladybug-tools/ladybug-blender/issues asking about the mannequin and pinging @mostapha ?

  • I was trying to follow a ladybug tutorial for grasshopper, but it seems they use the old nodes (or maybe something is different in Blender) and I got stuck.
    I want to create the sun lamp in Blender with the correct direction according to a specific day of the year. The SunPath node has a vector output that is supposed to have this data, but I don't know how to translate this to create a matrix in Sverchok. Has anyone tried this?
    I can get the location through sun_pts output, but it doesn't give me the direction.

  • I figured it out. The vectors from the sun path must be used as normal and the sun_pts as location to create the matrices of the lamps.

    nikitronbaswein
  • Ahh sorry for not replying earlier, but good you worked it out @bruno_perdigao ! By the way, if you're just after the sun at a particular time of day, the sun position add-on should do what you're looking for without needing to set up all those nodes.

    bruno_perdigao
  • edited June 2021

    I'm having problems with "LB Out node". I can't get "referesh" button work. Keep getting this error message.

  • edited October 2021

    @Garizmo said:
    I'm having problems with "LB Out node". I can't get "referesh" button work. Keep getting this error message.

    Hi I have been experiencing the same error today. Has this been resolved? I'd love to know the answer

  • At a guess I'd say that the Sverchok folks have updated their API and self.idtree or self.idname no longer does what it once did :)

    https://github.com/ladybug-tools/ladybug-blender/pull/29
    https://github.com/ladybug-tools/ladybug-blender/issues/28

  • Is there a solution to the LB out problem?
    I made a test a year ago but that project now gives me an error. (changed object in node)
    I am holding a lecture on Wednesday and would love to be able to present an example of a sunhour heatmap. Need to hand in the presentation already monday though.

  • Hi. Just in case people here are interested in hbjson. I just wrote an exporter from Topologic to hbjson that loads in Grasshopper / ladybug tools

    bitacovir
  • @Moult said:
    At a guess I'd say that the Sverchok folks have updated their API and self.idtree or self.idname no longer does what it once did :)

    https://github.com/ladybug-tools/ladybug-blender/pull/29
    https://github.com/ladybug-tools/ladybug-blender/issues/28

    Hello, is there a release with this fix? Or can someone please explain how to do this? Noob here.

  • edited January 2022

    @leandrobp said:
    Hello, is there a release with this fix? Or can someone please explain how to do this? Noob here.

    Unfortunately, there is limited manpower to handle all the projects with the same priority level. So, while Dion is focused on BlenderBIM, we will need to be patient for this one. It would be great if people from ladybug tool community could take this and keep with the development. Do they have an active developers community outside of the official team?

  • edited January 2022

    @leandrobp I have now released an update with the fix, as well as a few other small touchups to bring it up to speed with Blender 3, the latest Ladybug Tool nodes, and Sverchok. Hopefully everybody who has been experiencing issues with LB Out will now have it fixed.

    Additional developer manpower would be greatly appreciated :)

    leandrobpbruno_perdigaobitacovirHagaeus
  • @Moult Thank you! I'll test it.

    Additional developer manpower would be greatly appreciated :)

    I'd love to contribute to this and many other projects, but I'm still learning the basic of programming in general and python. Hope I can help soon.

    Moult
  • @Moult Sorry, but I didn't found the update, is it released?

  • https://github.com/nortikin/sverchok/blob/master/index.yaml
    take in account, that menu was changed! LB need to be fixed to that changes (latest Sverchok 1.2.0)

    bitacovirAce
  • Oh, Ladybug outdated. It is blender 4.0 outcome. so, if somebody is alive, update Ladybug stuff!

    bitacovir
  • @Moult said:
    For those unaware of Ladybug tools,

    Please, update Ladybug tools, Blender 4.0 and so on. It not works

    bitacovir
Sign In or Register to comment.