Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all 39494 articles
Browse latest View live

Using bisection method inside the python component to find the closest point on an arc to a point

$
0
0

@behdadyahyavi wrote:

Dear all,

I am trying to simulate the bisection method* to find the closest point on a reparametrized arc to a given point. I studied the mathematical concept, yet I am not able to define the required function to calculate the derivative. Especially since it should calculate the derivative according to a point on the arc. Could you guide me or give me any resources that would help me do so?


*https://en.wikipedia.org/wiki/Bisection_method
*https://www.youtube.com/watch?v=Y2AUhxoQ-OQ

Posts: 1

Participants: 1

Read full topic


Circular helix with soft end

$
0
0

@Eliel wrote:

Hi guys! i have no idea how to resolve this matter.

I am currently trying to generate a definition that pretty much allows the control over a helix; the idea is to vary its diameter, and its helix pitch through the Graph Mapper component.

I want it to have a smooth, continuous finish where it starts and ends, just like anywhere else on the helix.

Circular_helix.gh (9.7 KB)

Posts: 2

Participants: 2

Read full topic

How to subtract similar curve in three-dimensional space?

1. Solution exception:unbound method __init__() must be called with hb_EPSurface instance as first argument (got hb_EPZoneSurface instance instead)

$
0
0

@evelynmurer wrote:

Hi
I turned on my RunDaylightSimulation, but nothing happens. I then tried to update the honeybee components, and then came with the error. I am not sure how to fix this error, and i tried to google it, but i did not get any useful results. I hope that someone is able to help me :wink:

Skolebygning DF.gh (703.4 KB)

Posts: 2

Participants: 2

Read full topic

Point a point

Randall Page style patterns on surface

$
0
0

@gatenbones wrote:

Dear all,
Where to start!
I’m trying to imagine a code that might apply ‘pipe’ distortions like this onto a curved surface.
I’m currently playing around with parakeet and kangaroo inflate to see if anything comes to mind, but coming unstuck at the moment.
Any ideas much appreciated!

http://www.rableydrawingcentre.com/drawingsandprints/artist/gallery/552/6651/peter-randall-page-ra/drawing-and-sculpture/drawing-for-carvings-ii

Thanks!

Posts: 1

Participants: 1

Read full topic

Text in lists and selection of specific text strings

$
0
0

@Intuos wrote:

Hi,

I have created a script which allows me to set the street profile based on the type of surface and it’s width. There are two things that I would like to improve, these are marked by red groups in the attached script.

I am not sure whether I prefer to type out the ground floor definition by name or by number. My script requires the numbers to work with, but I would atleast like to see the names displayed alongside their width values (so the text conversion could work both ways). Is there a way to compress the replace text boxed into just one component? Basically, the conversion should be in the way it is defined by the white panels.

Additionally, I would prefer to click the value list checkbox to select all surfaces that are of a certain type (set to a green colour). I currently set a value cycle, which allows me to select just one type, but can this somehow be changed to the value list checkbox?

Groundfloor-Definition.gh (15.7 KB)

Posts: 3

Participants: 3

Read full topic

Complex numbers in Boy´s Surface


Model's JSON custom parameter works from the shapediver account page, but not from the embedded one

$
0
0

@lomidzelf wrote:

Greetings,

So, I’ve integrated the model into my custom web page and hooked all params with my controls and it works fine, but there is one parameter which is called JSON custom which controls the visuals of the models sub-elements (Like windows and doors of a building). I’ve received the example JSON for it and when I insert it into the shapediver’s admin side editor, it works, yet it doesn’t seem to work when I pass it via updateAsync method. Also, I’ve looked into the parameters note (in api.parameters.get()) and it says, that the property is currently inactive. Any way to enable it? The standalone JSON looks like this: { "openings": [ { "type":"dr", "width": 900, "height": 2000, "loc": [0,1400,600], "wall": "frontWall" }, ] }

I’ve tried to pass it in a regular way: ‘JSON custom’, value: ‘the actual json’ and in a standalone way, yet nothing happens. No validation errors returned. Just the message, that configurator failed to update. The page:

Posts: 3

Participants: 2

Read full topic

Merge text by branch

Rhino captures keyboard input from Grasshopper

$
0
0

@public wrote:

This is happening to me repeatedly where I try and change the value of a slider in Grasshopper by double clicking on the slider and entering a number with the keyboard and Rhino’s command text field captures the keyboard input. The same happens when you try and delete a component with the Delete key, again the command text field captures it. Restarting Rhino usually fixes the problem but not always. As a temporary measure is there anyway of hiding/showing the command text field in Rhino?

Grasshopper v1.0.0007, Rhino v6 SR23, Windows 10

Posts: 1

Participants: 1

Read full topic

Attractor Point Kinetic Facade

$
0
0

@fiorella.granda wrote:

Hello,
Kinetic Facade.gh (23.4 KB)


I have a loft that I internalized that I would like to make a kinetic Facade for. I developed the attractor points separately and was wondering if there is a way to wrap those attractor points on the facade. I have been trying to connect the loft but it was not accepted due to invalid data. If there is a way to place those attractor points to make a kinetic facade it would be greatly appreciated.

Posts: 5

Participants: 2

Read full topic

What to do about this error message?

$
0
0

@Birk_Binnard wrote:


I’ve never seen this before. When I close it my GH file proceeds normally. Should I check the “Do not show…” box and just ignore it?

I discovered that the problem is within a cluster that has about 30 components in it. The error box does not appear if the cluster is disabled. The cluster looks fine when I open it. I’ll try Exploding it and re-making it.

Good news! Exploding and re-making the cluster fixed the problem. So I’ll leave this post online in case anyone else encounters the problem.

Posts: 1

Participants: 1

Read full topic

Coronavirus charts and numbers

$
0
0

@piac wrote:

Hi all,

here a small definition that uses Python and GH to query public databases for coronavirus cases and provides that data for further analysis. It’s inspired by this video by Luciano Ambrosini.

The data of some countries actually starts to look quite good.

There’s also a part that uses JSON to query the Italian more-up-to-date repository. It will prove useful for a sample in case your local data is provided in that format.
Finally, this definition purposely does not use any add-ons. However, your charts will look more beautiful with some third-party library, for example Human UI.

Note: any responsibility on decisions taken based on this data or definition is disclaimed.

coronavirus-data.gh (15.8 KB)

Giulio


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Posts: 2

Participants: 1

Read full topic

Organize the number sliders into one location

$
0
0

@stmoen wrote:

I’m not sure if this is even doable but whenever I create a definition I have sliders all over the place and I have to hunt for them when making changes. I thought it would very helpful and convenient for the input parameters to show up in a centralized location where the values could be adjusted in real time and see the result. Maybe this already exists?

Posts: 4

Participants: 3

Read full topic


Script to create simple type:picture material from grasshopper

$
0
0

@ivan.galik wrote:

Hello,
Is it possible to script a node which would have these inputs and output?

I:
1 Filepaths of bitmap images as diffuse texture
2 Names of materials
O:
Materials of picture type

I am buidling a script to automate title blocks driven from excel and i need to include some bitmap images as well (can be hundreds). only way which comes rational is to do it via picture type material assigned to a surface which is well recognized when exported to dwg. i tried import image node but it is not usable since it produces a mesh when baked.

Thank you

Posts: 3

Participants: 1

Read full topic

Typical beam sections/library

$
0
0

@cesare.caoduro wrote:

I am familiar with parametric geometry and my question is very simple. Is it the only way to construct a parametric section in Rhino+GH to build a very complicated script like this? Nothing a bit more straight forward than creating points with offsets and connecting them with lines?
What if I need to create a complete library? Better to use custom nodes?

Posts: 1

Participants: 1

Read full topic

How to stop surface from stretching

$
0
0

@julia.miclaus wrote:

Hi! I’m not very experienced in rhino and I am having trouble with a voronoi surface that I have morphed onto another surface. When I am adjusting the domains it is stretching the voronoi and I wish it would stay in those limited areas of the surface without vertically stretching.

I’ve attached the code. Any help is appreciated!

ARC280 facade.gh (201.0 KB)

Posts: 1

Participants: 1

Read full topic

Custom container/floor for non-sphere collision

$
0
0

@efuterfas wrote:

It seems easy enough to simulate a sphere falling into a bowl (for example) but what if I want a cube to fall into a bowl?

For context, I’m trying to drop a bunch of cubes simultaneously onto a very dynamic topography.

How would you go about scripting this in a K2 simulation?

Thanks ahead

Posts: 1

Participants: 1

Read full topic

How to displace brep with image

$
0
0

@justin.cheung.design wrote:

Hi everyone,

I am new in grasshopper and I have been struggling on this problem for few days already…
The thing I want to do is displacing a greyscale image on a brep and so it has the image’s texture on a real 3D model. Just like when you are doing rendering on surface with displacement effect.

Below are the steps I want to implement in my file;

  1. Divide points on both brep and image
  2. Apply the divided points follow on brep shape
  3. Make the divided points on brep are controllable based on greyscale image
  4. Create new surface by using new points

I can’t do the step 2… as now all divided points they are on a plane… Please help~

Reference: Below link is something which is exactly what I want but I need it in brep… I tried their way but seems mesh is quite different to brep…

Greyscale image on brep.zip (1.6 MB)

Posts: 3

Participants: 2

Read full topic

Viewing all 39494 articles
Browse latest View live