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

Spherical Ribbon Pattern


Connecting two md sliders to one uv point

$
0
0

@lars.wettestad wrote:

Hi,

I am very new to Grasshopper and struggling with this issue: How do I connect two or more sliders (md or otherwise) to the uv point on evaluate surface.

I have been searching a lot on the nett as well, but I do not master the right terminology it seems.

Any help appreciated.

Best

Lars

Posts: 5

Participants: 3

Read full topic

How to remove the bits of surface from the edges

[Newbie's Question] How do I add Thickness to my Parametric Wall (Grasshopper Plugin too)

$
0
0

@izumi_aiko wrote:

So Basically I am trying Parametric Design with Rhino. Problem is after experimenting it and baking it, I am unable to get Thickness from it.
I tried using ExtrudeSrf command on Rhino to create the thickness but there is crazy amount of “vectors” from it and it just doesnt extrude (after waiting like 10mins). And I also realise this method will not make it into a solid. It will just be a Hollow thickness if you know what I mean?

So how do I add thickness to it? In BOTH Rhino and Grasshopper. Thank u guys in advance :slight_smile:

Posts: 4

Participants: 4

Read full topic

Get all components in the document that have Preview Off

$
0
0

@sobon_konrad wrote:

Is there a way to filter a list of document objects by whether they are on/off? So doc.Objects() returns a list of IGH_DocumentObject and since this is an interface, we don’t have access to Hidden property. I would hate to try and cast all of these interfaces into concrete types. Any easier way that I can get at the Hidden property?

Ps. I know I can use Reflection like so: (bool) x.GetType().GetProperty("Hidden")?.GetValue(x, null) but it somehow feels dirty.

Cheers!

-K

Posts: 3

Participants: 2

Read full topic

Colour Mesh from Multiple Mesh Points

$
0
0

@bodinnar wrote:

I have been trying to colour a simple mesh from multiple points and I feel I I’ve just been going in circles.


I take the vertices from A and find the closest point B. I want to colour these points with the colours C and interpolate the rest to give a nice contoured mesh as the end product.

Any help would be greatly appreciated.

Cheers
MESH COLOUR.gh (19.2 KB)

Posts: 1

Participants: 1

Read full topic

Grasshopper finding number of items in data tree branch

$
0
0

@cshea wrote:

Hi
I shattered some curves - most of the curves shattered into 4 segments but some into 5 segments.McNeelForumDataTreeItemCount
How can I find number of items per branch so that I can select the branches with 5 segment curves? I want to join a couple of them to end up with 4 curve segments too.
Many thanks.

Posts: 4

Participants: 3

Read full topic

Updating menu item's 'checked' status

$
0
0

@matthewaustin233 wrote:

Hey guys,

Trying to get a component to update it’s nickname when an option is selected - as with the example below. I’m wondering what do I need to code to update the checkbox in the menu?

I’m assuming i’m missing something - cause i felt like it was working in an earlier iteration of the code.

using System;
using Grasshopper.Kernel;



namespace my_gha
{
    public class my_component : GH_Component
    {

        public my_component() : base("MY Component", "mc", "Stuff", "User", "Forum Question")
        {
        }

        public override Guid ComponentGuid
        {
            get { return new Guid("12ac74ea-cf57-4796-a702-38aa7e6e9048"); }
        }

        protected override void RegisterInputParams(GH_InputParamManager parameter_manager)
        {

        }

        protected override void RegisterOutputParams(GH_OutputParamManager parameter_manager)
        {

        }

        protected override void AppendAdditionalComponentMenuItems(System.Windows.Forms.ToolStripDropDown menu)
        {
            System.Windows.Forms.ToolStripMenuItem menu_item_a = GH_DocumentObject.Menu_AppendItem(menu, "A", menu_a_clicked);
            menu_item_a.ToolTipText = "Info about A.";
            
            System.Windows.Forms.ToolStripMenuItem menu_item_b = GH_DocumentObject.Menu_AppendItem(menu, "B", menu_b_clicked);
            menu_item_b.ToolTipText = "Info about B.";

            System.Windows.Forms.ToolStripMenuItem menu_item_c = GH_DocumentObject.Menu_AppendItem(menu, "C", menu_c_clicked);
            menu_item_c.ToolTipText = "Info about C.";
        }

        private void menu_a_clicked(object sender, EventArgs e)
        {
            RecordUndoEvent("A");
            this.NickName = "A";
            
            ExpireSolution(true);
        }

        private void menu_b_clicked(object sender, EventArgs e)
        {
            RecordUndoEvent("B");
            this.NickName = "B";
            ExpireSolution(true);
        }

        private void menu_c_clicked(object sender, EventArgs e)
        {
            RecordUndoEvent("C");
            this.NickName = "C";
            ExpireSolution(true);
        }

        protected override void SolveInstance(IGH_DataAccess data_access)
        {

        }

    }
}

Posts: 2

Participants: 2

Read full topic


How to create surface that resembles the sand on the beach?

Change Slider Color in Human UI

$
0
0

@zohaibneduet wrote:

Hi all,
I am trying to change the color of the slider in Human UI from Blue to Grey, but I found that by using “Adjust Element Appearance” the text color and background color can be changed.

But, I want to change the color of the slider’s bar from Blue to Grey, Any ideas?

Thank you!
SilderColorChange SliderColorChange.gh (28.9 KB)

Posts: 4

Participants: 2

Read full topic

Shape recognition + response

$
0
0

@chris.prinsen2 wrote:

This question relates to rhino because I would like to accomplish this task within the application. Although I’m assuming your suggestions will lead me elsewhere…I figured this is a great place to start.

I want to import a model of a gothic church into rhino. And then import a kitbash of let’s say for example projector parts…Then I want to write a code to recognize shapes within the gothic church model (triangles, squares, circles).

Then I want to write a code to replace those shapes with items from the kit ash. I prefer the items that are selected for the corresponding shape to hopefully resemble those shapes in form…How the items are selected doesn’t matter to me at this point in time, I’ll leave that to you.

I’m led here because of the crow component, and I’m guessing neural networking / AI capabilities are needed for the recognition and output.

Sorry for the novel. If it’s confusing please allow me to elaborate.

Thank you In advance!

Here are images that have inspired me to this idea…

Images: Mark gage foster and Matias del campo

Posts: 4

Participants: 4

Read full topic

How grasshopper makes such a wave of wave shape

How does the grasshopper array replicate different objects and place a shape

Grasshopper selecting curve help!

Replace items wrap bug?

$
0
0

@maje90 wrote:

2019-10-11%2013_59_24-Window
Replace_items_bug.gh (8.0 KB)

Hi all!
The “trick” of using -1 index to point at last item of a list… it doesn’t work with Replace items component.
Is this a bug?
Am I doing something wrong?

Posts: 1

Participants: 1

Read full topic


Solving equation iteratively

$
0
0

@javier.vinuales.nava wrote:

Hi everyone,

I am trying to solve an equation iteratively in Grasshopper.

The process would be the following:

  • having an initial guess (first iteration) or input value
  • calculating output value
  • if output is equal to the input by a defined tolerance end process, if not repeat process with output value till convergence is achieved

How would you approach this? I tried to define a C# script but cannot think if anything without recursion…

I also heard of Hoopsnake, would it work for this? (if there is a solution within Grasshopper native components or easy scripting would be better)

Thanks,

Javier

Posts: 5

Participants: 2

Read full topic

Export - processing, please wait

Reset timer component

$
0
0

@wu841224 wrote:

Excuse me. I use timer componet to make a loop. I want to know how could I reset timer component to make sure every time interval is what I set.

Posts: 1

Participants: 1

Read full topic

Change Perspective Wallpaper

Help with Network Surface

$
0
0

@Nathan_Dube wrote:

signet-V3.gh (45.6 KB)

Hello All,
I’m relatively new to Grasshopper. As away of getting up to speed I’ve been going through some of the exersices I use in a Rhino class I teach. Most of it is making sense and coming together, however, I’m struggling with creating a Network Surface from a series of curves for this signet ring. I’ve attempted a couple of versions and things have got closer and cleaner but I’m still getting a null return from the Network Surface command and not sure why. Is Network Surface the best command to use or should I be using something else? Any help or suggestions would be great and helpful.

Thanks in advance.

I’ve attached my code as well as the desired result.

Posts: 4

Participants: 2

Read full topic

Viewing all 39802 articles
Browse latest View live