Script Component Guid input

the old script component allowed a type hint Guid - and was able to get the Guid of the connected Crv-Parameter-Source.

the new script component does not handle this conversion.
an additional “GUID” component is needed as workaround.

please bring back the old behaviour. thanks.
are you the right person to address ? @eirannejad

example

simple demo of getting the name “Heinreich” (the curve name)

 private void RunScript(Guid id, ref object a)
    {
        RhinoDoc doc = RhinoDoc.ActiveDoc;
    RhinoObject obj = doc.Objects.Find(id);
    if (obj != null)
    {
      a = obj.Name;
    }
    }

guid_script_input.gh (8.2 KB)

1 Like

Hmm this is not good. I made this ticket and will fix ASAP:

RH-83704 Rhino Obj to Guid converter on script component does not work

2 Likes

Okay pushed a fix for this in 8.12 and made sure the Guid hint has consistent behaviour across languages:

2 Likes

@eirannejad
thanks for the fast reaction and fix.
fantastic.
a bug solved 5h after it got posted.
:clock4: —> :clock9:

great - and again thanks

kind regards - tom

1 Like