Hey there,
I realise this is a new-ish feature of Speckle, so might not be fully implemented yet, but would anyone be able to help me get Grasshopper sliders to appear under the “controllers” bit of the speckle web viewer? I’ve found another post which recommends right clicking speckle sender component and selecting “enable remote control of definition” but the controllers part of the stream is still empty. I’ve tried disabling firewalls and all that jive, but still no sliders appearing, I’m guessing there is another step involved that I’m missing?
Thanks!
Hello @EKM, what’s not documented yet is that the sliders you want to show up need to have SPK_IN
as part of their name Here’s an example:
As well, the sliders work best when dragging the knob, while clicking directly to a location might not trigger a compute request.
Let me know if it works out!
Wahoo - wonderful!!! Thank you - all is working very well
One more question: Is it possible to get the web-viewer slider to snap to integers? Eg. if I wanted to cycle through options 1, 2 and 3 & snap to those numbers?
That’s for sure possible, but I’m not sure of the general bandwidth for this at the moment… AFAIK, slider info is passed with information about their decimal places, but @mswaidan’s down under now, and so am I
@EKM Yes, I’m totally swamped at the moment and haven’t been keeping up on viewer improvements, but we should be sending the slider increment value so you can control int / float / precision from the GH definition. Can you open an issue at www.github.com/speckleworks/speckleviewer so I don’t forget about this?
-M
Hi Dimitrie and Mathew, first of all thanks for the amazing work. (New .rhi installation runs great). The SPK_IN: is a great tip, great to have sliders on a web viewer with such an easy set up! I was wondering if there is a similar way to store the design space options offline so Rhino doesn’t need to be open? Thanks again!
They are stored on the server, as children of the original stream, so there is a way to do retrieve them. There’s also the possibility to precompute the solution space, as per the now defunct beta speckle and speckle streams, so you don’t need rhino open.
It’s a lot of ui legwork; it will happen, but for now, unless you wanna get your hands dirty, this is not available out of the box
Hi Dimitrie, I see, thanks for the info! I remember the feature on previous speckles indeed - not easy to retrieve those at the moment from what I see. Precomputing the design space is possible also with the “fly” component of Ladybug. Mainly I wouldn’t know where to feed an output csv (with a format something like input_1, input_2, …, input_n, geometry_json). any tips where to look first in case I can work towards that direction? Cheers!
+1 for this functionality. I don’t really use Speckle much right now but this functionality would really make it valuable! I remember using Speckle streams for this reason.
Hey! actually, on the viewer in hestia, they’re back.
First step: “select enable remote control” from your grasshopper sender:
Second step: name your sliders! For them to appear in the browser, they need to contain “SPK_IN” in their name.
Third step: go to the controllers tab of your stream and hit “refresh”.
Finally: profit!
As a warning, it’s probably still buggy as I haven’t tested it properly yet.
You just might, if you’re really really really lucky, get away with using the old viewer: speckle-viewer
Agreed that this is necessary functionality. Is there any way to do this currently? It’d be great to be able to use ladybug or Colibri or similar to precompute. If this was possible in the previous version, is there any way to currently take advantage? Alex’s question is exactly right - a simple input for the json and csv files would be fantastic.
To be honest - I am having quite a number of issues with this - on one hand I got them to work with the old viewer, but that means someone has to keep his Rhino constantly open - to do the calculations.
I’ve been working on rewriting the Vue code for the Admin/Viewer so it reads the data it receives from the core. I believe I talked about this more directly on Slack and this functionality went away once the Viewer was re-written to become part of the Admin. Seeing as the core is untouched this functionality is still there and it would be still very possible to use this, just needs a good re-write (i’ll probably add a new tab for controllers once I get to it) and share it, once I’m done with other projects.
Ideally, I’d like to use Rhino server for this and purge variations from the viewer, not keep them there. So at the moment I’m struggling with hosting a RhinoServer and connecting Speckle to it same as you would do with any API. This circumvents having to keep the Rhino program open all the time and it becomes more practical for large 5D scripts for cost estimation.
Gotcha all, i hear you. It’s just a lot of work.I would love to get this back in too.
For now, the only thing I can do is put it on the roadmap. The more voices gather, the more attention this will get…
+1 in new speckle 2. would love this feature.