Grasshopper

algorithmic modeling for Rhino

I am trying to define my first separate grasshopper component / ghuser object.

To do this, I select the relevant component, and choose "File > Create User Object"

However, when I do this, two parameter names change on my component from "up", "down" to "A", "variable a" - whatever changes I make to the inputs / components, this problem persists.


How do I create an external component that preserves parameter names?

Views: 1688

Replies to This Discussion

Here is an example file - I've done everything I can think of to get the names right, but nothing has worked.

Without the correct names, the component is much harder to use / less reliable.

Do I need to create a component in C#, rather than a user object? Is there a guide anywhere to creating components?

User Objects are pretty poorly implemented, but I can't comment further until you really upload it.

ugh. forgot to upload twice now.

Thanks for your help David.

Attachments:

Hello Christopher, David,

It seems ok when I open the file

That is the cluster which I named myself.

To create a user object go to File -> Create User Object.

When you create an instance of the new user object, up and down will be Integer, Integer

(attached file has both components. not sure it will work.)

Attachments:

Hi Christopher, you can double click the inputs and fill in the name, nickname and description. After you make it into a cluster you can left click the inputs to change the names (will default to the set nickname). I also simplified the definition a bit.

Hi Peter,


I just now tried your approcah, renaming the inputs to Up/Up and Down/Down.

I then created a user object, and dragged an instance onto the board.

That object has inputs "Surface, Integer, Integer" -> you have to drill down into the user object to know which is up and which is down (actually, I think there's really no way to know without plugging something in)

Also, after trying to recreate your definition (I am never confident with images), it seems that the edges between the two surfaces are no longer created.

It's working for me... Maybe right click the inputs again to change the names, after that create the UO.
Which direction is 'up' or 'down' is dependant on the surface normal direction of coarse. Draw your surface in a counterclockwise fashion to have the surface normal face towards you.

Edit: create your cluster. Right click it to set some properties > OK. Then select the cluster and choose "create user object".

Tried again but no luck.

Using GH 0.9.0076.

Attachments:

I noticed you forgot to attach the '-x' component to the offset distance, and you don't need to flatten before joining. It won't get  any flatter than it already is.
Work on your cluster until you're satisfied, and after all that save it as a user object. I don't know what more to say.

Hello Christopher, Pieter,

It is working for me too (I converted the cluster into a user object and no input names were changed)...

Have you made sure to delete any previous user objects you have created?

Have you tried to create new cluster inputs and give them names & nicknames and then connect them to the following components inside the cluster?

Hi Nikos, Peter. There is no reply button under your comments - is there a maximum depth to replies?

Nikos: Thanks for your suggestion. Creating new inputs and renaming them before connecting them to anything did the trick.

Pieter: thanks for your help as well.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service