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?
Tags:
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.
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.)
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.
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.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by