but the order in which K gets changed is the same order that all of the other lists get changed.
For example (I'm not at a PC with Rhino/GH so I can't post an example directly) You want to order a cloud of points from the bottom up, i.e. by Z lowest to highest. Using the PComp component to decompose a point into its separate x, Y and Z components you can plug the Z output into K of the Sort Component. Sort will then re-order the Z values from lowest to highest, but the points you wish to order haven't be changed only a list of numbers. So you can plug the points into A and they will be reordered into the same lowest to highest order that the Z component was changed to.
Similarly if each of these points had a label that you wished to be attached to it at a latter point in the definition the list would no longer be in the same sequence. For instance if the original list was ordered in the X axis from 1 to 20 with one being the closest point to X = 0 and 20 being the furthest. Since you have rearranged the points, their labels are now 1 is the lowest and 20 is the highest, but we want them to remain the same as before with 1 being the closest to X=0. This is where the extra inputs on the Sort Component come in. Plug the list into B.
K is ordered smallest number to largest number
A is ordered lowest point to highest point
B is ordered so that 1 remains closest point to X=0 and 20 is furthest from X=0 …
ted_With_Honeybee.gh" file:
Warnings:
1. Honeybee cannot find RADIANCE folder on your system.
Make sure you have RADIANCE installed on your system.
You won't be able to run daylighting studies without RADIANCE.
A good place to install RADIANCE is c:\radiance
2. Honeybee cannot find EnergyPlusV7-2-0 folder on your system.
Make sure you have EnergyPlusV7-2-0 installed on your system.
You won't be able to run energy simulations without EnergyPlus.
A good place to install EnergyPlus is c:\EnergyPlusV7-2-0
Error:
1. Solution exception:Could not find a part of the path 'c:\ladybug\HoneybeeRadMaterials.mat'.
---------------------
I now reinstalled Radiance in the C:\Radiance folder and when dropping the Honeybee_Honeybee component on the canvas, I get the following:
Runtime error (DirectoryNotFoundException): Could not find a part of the path 'c:\ladybug\HoneybeeRadMaterials.mat'.Traceback: line 253, in __init__, "<string>" line 2200, in script
----------------------
[that is also the only error that I'm now getting when opening the 000 getting started file).
There is no c:\ladybug on my PC.
Note: In order to run the Radiance installer, I had to run as administrator. My user doesn't have write rights on the c-root folder (and no chance of getting that either... :)
Thanks,
wim
…
lysing and assessing sustainable performance of buildings and structures, called sustainability-open. Yes, open-source: that means everybody can use it as much as they want. We hope that this will give designers and engineers to make more sustainable buildings and structures in the future. And you can take a look at our code - to learn or improve it if you like! The framework is still in early stage and doesn't do a lot yet at the moment, so this is your chance to become an early-adopter.(By the way, very soon new components will come out that will early let you do more.)
The framework is linked to Grasshopper and Rhino - as soon as we have a little bit more, we will add some links on this site too.
At the Design Modelling Symposium Berlin (September 28 - October 3)we will host a workshop over the weekend which will show you everything about the framework and its components, our future plans, etc. We will also teach you how to develop your own components. Not everything will be purely related to the framework as we will be doing a lot of .net development related to Rhino/Grasshopper and other parametric applications. If you would like to know more about the framework, take a look at: http://www.sustainability-open.com or follow us on Twitter: @sustainableopenIf you would like to sign up for the workshop in Berlin or would like to know more, go here:https://www.design-modelling-symposium.de/frontend/index.php?folder...Regards,Jeroen…
lysing and assessing sustainable performance of buildings and structures, called sustainability-open. Yes, open-source: that means everybody can use it as much as they want. We hope that this will give designers and engineers to make more sustainable buildings and structures in the future. And you can take a look at our code - to learn or improve it if you like! The framework is still in early stage and doesn't do a lot yet at the moment, so this is your chance to become an early-adopter.(By the way, very soon new components will come out that will early let you do more.)
The framework is linked to Grasshopper and Rhino - as soon as we have a little bit more, we will add some links on this site too.
At the Design Modelling Symposium Berlin (September 28 - October 3)we will host a workshop over the weekend which will show you everything about the framework and its components, our future plans, etc. We will also teach you how to develop your own components. Not everything will be purely related to the framework as we will be doing a lot of .net development related to Rhino/Grasshopper and other parametric applications. If you would like to know more about the framework, take a look at: http://www.sustainability-open.com or follow us on Twitter: @sustainableopenIf you would like to sign up for the workshop in Berlin or would like to know more, go here:https://www.design-modelling-symposium.de/frontend/index.php?folder_id=180Regards,Jeroen…
ed to develop a component that reads data from a Tracking Server we have built here in our lab, on top of VRPN Server. We developed a client library to communicate with this server and to read data from different devices through the server, making our life easier. The fact is that I need to update data received from a wiimote for example (at a regular time interval) and output this data to feed other components. Our first approach was to test the inclussion of that library into the context of Grasshopper and it worked, but just and only for the first time the component is created of course. Now the problem is to call this update function inside grasshopper multiple times and update the output. I'm new to grasshopper component coding so, it would be nice if I can get some response of an expereinced developer or at least somebody that have developed something like the example I'm exposing here. Some code is posted below to clarify what I'm saying.
...
using VRPNClassLib; //This is our class lib.namespace MyComp{ public class MyComp : GH_Component { private VRPNController controllerWiimote = new VRPNClassLib.VRPNController("WiiMote0@localhost"); private Wiimote wii = new Wiimote();
...
private double rotX, rotY, rotZ; public MyComp() : base("Al required params ok") { try { controllerWiimote.addDevice(wii); } catch (Exception e) { throw new Exception("No wii controller attached to the PC: -->" + e.Message); } }
...
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager) { pManager.Register_DoubleParam("Pos X", "X", "Wiimote X"); pManager.Register_DoubleParam("Pos Y", "Y", "Wiimote Y"); pManager.Register_DoubleParam("Pos Z", "Z", "Wiimote Z"); } protected override void SolveInstance(IGH_DataAccess DA) {
// If execute MainLoop() here for the first time it works of course, but I need to continuously read data from wiimote, how do I do that
MainLoop(); DA.SetData(0,rotX); DA.SetData(1,rotY); DA.SetData(2,rotZ); }
protected void MainLoop() { controllerWiimote.UpdateData(); //this is the function that updates device data rotX = Math.Round(wii.getSensorRot1(),2); rotY = Math.Round(wii.getSensorRot2(),2); rotZ = Math.Round(wii.getSensorRot3(),2); }
public override Guid ComponentGuid { //Genere el GUID del componente get { return new Guid("8F9858D8-F18E-45f2-90EC-CC23523ACC4F"); } } ... }}
So any sugestions are welcome.
Cheers :)…
ers of the last surface in the Brep, however, only the corners of the bounding box of the surface are generated)
It seems the rs.SurfacePoints only returens the control points of a surface rather than the actual corners of the surface. Can you advise if there's a way to do it?
Thank you!
Code:
import rhinoscriptsyntax as rsall_parts = rs.ExplodePolysurfaces(brep)centers = []vectors = []lines = []vertices = []cnt = 0for part in all_parts: center, err = rs.SurfaceAreaCentroid(part) centers.append(center) #rs.AddText(str(cnt), center) uv = rs.SurfaceClosestPoint(part, center) vector = rs.SurfaceNormal(part, uv) vectors.append(vector) N_start = center N_end = rs.VectorAdd(center, vector) line = rs.AddLine(N_start, N_end) lines.append(line) #vertices = rs.SurfacePoints(part) vertices = rs.SurfaceEditPoints(part) cnt +=1#C = centers#N = vectors#L = linesV = vertices#todo:#explore the surface methods in rhinoscript.surface...#import rhinoscript.surface.…
Added by Grasshope at 10:34pm on September 15, 2015
content from the "bin" folder to the "c:\ladybug\terrain shading mask libraries 64-bit" folder:
So not the very bin folder, but its content.Just do this and the component will work.
Hi Abraham,
But just want to remind that Marios Tsiliakos developed a component for unblocking the LB_HB components and libraries (Unblock All and Unblock).
Thank you for the suggestion. I am aware of that component. I shared an article about it on my facebook account last year, at the time when it was released. It's a great component!There are still two issues with it: It edits the windows registry.I order for it to edit the windows registry it requires an account with administrator's rights.To unblock the file manually you do not need to have an account with administrator's rights.
BTW i installed the release-1800-x64-gdal-2-1-0-mapserver-7-0-1.zip without issues (just unblocking).
Yes, the GDAL 2.x.x and MapServer 7.x.x versions will also work. But I can not install them on my PC, therefor I can not provide support for them. The GDAL 1.x.x and MapServer 6.x.x are sufficient for what the component does.If you intend to seek support for any future issues, please install the latest GDAL 1.x.x and MapServer 6.x.x version as said by the component installation instructions.…
ing red flag.
1. Solution exception:name 'scriptcontext' is not defined
Reading the script, i think, maybe what i am after is not possible, using named views.
It outputs the named views resolutions, but whatever named view i select get maximized and also gets set to whatever selected active view i have in Rhino. This makes the order of the named views, in a 4 view layout, to rearrange which messes the setup i have.
Fiddling a bit with the script setting viewMaximized to False, does not maximize the selected viewport, but stops the auto update of the viewport size too. I guess this happens because since its not maximized it does not register to ActiveNamed view.
So if getting the named views resolutions, without having to click in each,without getting maximized and set to the current selected view is not possible i thought of the following.
What i tried was the example given in rhinocommon
from scriptcontext import doc activeViewport = doc.Views.ActiveView.ActiveViewportprint "{1},{2}".format( activeViewport.Size.Width, activeViewport.Size.Height)
and i used it with a timer, so that everytime i click in view,named or not, it gets the resolution. But for some reason my pc hates timer and makes my system luggy. I could work with the above script if somehow the timer, or any other method, was embedded in it, so that when i click in a view it updates the resolution. I have a feeling this is something easy to.
*edit timer also forces a redraw of objects in viewport (hence the lag?)
thank you again
best
alex…
Python est un langage reconnu pour sa puissance, clarté et compréhension.
Durée : 2 jours soient 16 heures
Public concerné
Utilisateurs de Rhinoceros
Objectifs de la formation :
Donner aux utilisateurs la possibilité d'accéder à la fois aux bibliothèques RhinoScript, des bibliothèques de fonctions très simples d'utilisation. Et permet aussi d'accéder à Rhinocommon la collection de fonctions permettant de réaliser des plug ins (greffons).
Les moyens pédagogiques :
La formation utilise le RhinoPython Primer comme support.
Venir avec un PC Portable avec Rhinoceros 5,0 et éventuellement Grasshopper.…