BUG: Maximum no longer returned in rhino-compute IO response

Hello,

It looks like a change in rhino-compute on March 16 made it so the Maximum is no longer returned as part of the IO response for the “Get Number” contextual input. It is set to ‘null’. Build prior to that returned the Maximum properly. I’ve included the ioresponses from before and after the change for reference.

ioresponse-new.json (389 Bytes)
ioresponse-old.json (389 Bytes)

Hi, I just got the same problem using the versions:

Rhino: v8 SR21
Rhino Compute: {8.0.0.0}

Is it a known issue?
Is there a solution, apart from using a slider and the old RH_IN: naming convention?

Thank you,

Marco

Hi Marco. I’ve just pushed a fix for this issue. Try installing Hops 0.16.25 from the package manager. You may want to also make sure you’re using the latest build of Rhino 8.21 as well (if you haven’t already updated to that version). Thanks for reporting this issue.

Hi Andy, I checked and it works now, thanks for the fix.

On a related note, when a contextual input is used on rhino compute, it is usually associated with a slider in the user interface: it would be useful to specify the “step” (decimal precision), so that a proper slider can be generated. Right now I’m using some custom metadata, but it would be nice to have a native implementation. Should I open a new topic for this?

Thanks again

Marco

I’ve made a You Track issue (Compute-324) to track this request. Thanks.