generative modeling for Rhino
Does anyone know of a simple way to swap the Us & Vs of a surface without using vbscript? I have a grasshopper definition I created using certain Rhino geometry file and am now trying to use it with a different Rhino file and need to change the Us and Vs to avoid reworking the whole definition.
You can only do this in a VB/C# Script Component.
In its simplest form see attached
Hi Danny... Thank you very much for the help... Few quick questions if you don't mind....
1) How do I change the grey areas in the "Edit Source" under the VB component? I'm assuming this is where you write in your own script to get the component to do what you want. I can add this part because the background is white.
If S Is Nothing Then
T = S.transpose
but I can't change anything in the grey areas... (reference the image)
2) I copy/pasted your component directly into my file, I hope you don't mind. (I had troubles because of question 1).... How can I add this to my GH so that when I want it I don't have to open the old GH file and copy/paste?
1) You can't. Only white bits for users. There is an additional white space at the bottom that you can write your own functions in to be used in the Script. If you want to have access to the grey areas then you will need to get into making your own GHAs
2) Turn it into a user object. Select the Component, go to the File Menu > Create User Object. Name it, Nickname it (the text display name on the canvas), Select the Tab on the Ribbon, select the Panel it should be placed it, give it an Icon. et voilà
1) but the component you created you changed the inputs and outputs next to "Private Sub" in the grey area... how did you do this?
2) thanks! but now I have accidentally created two for the same component with different names... how would I remove the one I don't want
If you zoom way into the component on the Canvas you will see the + and - symbols appear this allows you to change the number of inputs. If you then right click on an input you can then change the name at the top of the context menu.
Ah.. I see now.....
Download LunchBox: there is a component (RevSrf) that does what you need.
Thanks for the tip