Shapediver - How to select individual points in mesh?

Hi, I have 2 queries-

  • How do I use the point select component of Shapediver to get the user to select a point in the mesh, couldn’t find any document/example showing this.

  • I’ve used gumball component in my definition file and am trying get the preview of it to turn off and turn the preview of the next component to turn on- but when I do this, grasshopper takes the object before the ‘gumball transformations’ occurred (see picture attached). Please let me know what am I doing wrong.


    Any help is appreciated, thanks in advance!

The Points Input is still in beta and the documentation is still in progress. Here is a small example model showing how to draw on a mesh using a Points Input component.

241030_DrawOnMesh.gh (40.0 KB)

More extensive documentation will come in the next days, but feel free to ask follow-up questions here after you review the example.

I do not fully understand your second question. I see that the “Inject Attributes” component throws an error but it is not clear why without seeing the definition. Please explain more in details and attach a minimal example.

1 Like

Hi @mathieu1 thank you for the example file (How do I set the default no of points in the point input though?)- it solved my issue, regarding the Gumball problem that was resolved too.

I do however, have another problem now- only the beginning of my grasshopper definition is showing up in Shapediver after I upload it on the platform.

A very big part of my definition file is not showing up in Shapediver. Can you please help me with this? (see attached pictures)

Only the circled part in this picture is showing up-

Or is there something I should be careful about?

Thanks again!

Hi, can you please look at the above issue once or tell me what I should be careful about to avoid this?
This is the only issue preventing me from testing the whole script in Shapediver.

Thank you!

Could you please share a minimal definition helping me reproduce the problem? I cannot provide help from your screenshot only.

Regarding the default points of the Points Input component: you can right-click on the component and set a default set of points or polyline using the “Default value” option.

Hi, I cannot as I don’t know what the issue is. This same definition was working earlier but when I added some Shapediver display components this issue came up- I’m now trying to add display to the other parts and see If the issue goes away. If not, I should be able to pinpoint the problem area and share a relevant definition file

Let me know whenever you have any more information or a reasonably minimal definition to share so our team can have a look.

Hi, is there a way I can show the changes that happen when a parameter is changed live in the app, instead of it just refreshing with the changes made?

I am not sure I understand your question. My best guess is that you would like to see the model updated in real-time when you move a slider, and not just when the slider is released. If that is what you want to achieve, there is no way at the moment. We could add a way to do this, but we do not recommend it as model updates can take a little time, and it would hurt the user experience to force updates of sliders tens or hundreds of times in a row when moving a slider.

Yes, that is exactly what I need- for my particular use case this would enormously increase the user experience. Is it possible to maybe limit this live update to only specific sliders then?

OR

Maybe have some sort of animation linked to this where the animation time is defined by when the slider is changed and released, and the change defines the animation movement?

Any help is appreciated, thank you!

If you are trying to show the rotation or translation of objects, or any other simple transformation which can be done in real-time in the viewer, you could use the viewer API to set them up. In the future, we will add components in Grasshopper to allow that.

If you are trying to show the evolution of a complex shape that depends on parameters of your definition, there is currently no good way to achieve what you want. We could add a slider mode in the App Builder that triggers updates as sliders move, but it would probably not be a good user experience (lagging because of server updates) and potentially hit rate limits.

Maybe you can describe your use case a little more in detail.

1 Like

What you described should work for me. For my use case I wish to preview various operations like twist, rotation, scale and movement at different stages which I think should not be too complex to use the viewer API as you mentioned, I do however deconstruct and reconstruct my mesh to achieve these transformations (see the image attached). Would this complicate things?

Also, I have no developer background, do you i would be able to use the Viewer API or will I need to get someone to help me out?

I would need more information about what you are trying to achieve and the constraints of your project to help. In any case, at the moment, I do not see a way forward without development effort which will definitely require a developer background. Please contact our team if you want to discuss your project and how best to implement your application.

We have now written a more complete help page regarding the Points Input, including example definitions. Find it here:

1 Like

Thank you!
This helped a lot.

Hi, thank you for your help so far. I have 2 more queries:

  1. We plan to use the Shapediver Business plan to start with and would want to integrate it into our web app, will it possible to create a custom layout of the UX/UI (including the sliders showing up in the shapediver app)?
  2. Is it possible to take inputs from the responses to the order form we create in our app and use them as values for the grasshopper definition uploaded?
  1. You can find documentation here about how to customize the App Builder themes. We will in the future provide a user-friendly way to do this, but at the moment it requires playing with a configuration file.
  2. Could you explain further what you need? How are the order forms generated in your app? Using the email component?

Hi, thank you for all your help. I have been some issues with the shapediver interaction components, namely-

  • Input Geometry- sometimes the geometry doesn’t show up in the app.
  • point Selection- I’m using this component in combination with eh mesh closest point, but my spheres seem to forming very far from the mesh even after I remove the plane constraint(I need to select points on my mesh).
  • Another issue I’m facing with this component is that the points seem to disappear when I take my pointer to upper regions of the screen and have to pan my model to bottom right corner of the screen so I can select a point on the upper edge of my mesh.
    Please check the attached screenshots.

(the green arrow is where I positioned the point)

Can you please guide me in the right direction?
Thanks for any help is advance!

Please provide a minimal definition for the issue with the Import Geometry component, so I can investigate it.

Regarding the Points Input, we have noticed some issues with the latest release which we are working on. We will release a fix next week.

1 Like

Oh great, thank you!
Can I use the older component until then, will that still work?
PFA a minimal definition with import issue.
Additionally, is there any faster alternative to the quad remesher computation wise? Some of my input meshes are going to be huge and pretty dense and the component takes more than 8/9 secs sometimes.
1_8.gh (703.7 KB)

Thank you for your quick response!