+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 14

Thread: Problem with Python component in GH

  1. #1
    Super Moderator Mitch's Avatar
    Join Date
    May 2010
    Location
    Switzerland
    Posts
    286

    Problem with Python component in GH

    I posted this over in the GH forum, but I though I'd post it here too, as I don't know who's watching out for this stuff:

    Every time I reopen a GH definition made previously using a Python component - a simple 3 line script that has one input and one output - the output connector is missing. I have to add it back in. This is repeatable and has happened several times lately.

    Also, when I add the output connector back in and rename it from "a" to let's say "result", I see its name in the tooltip as "a (result)". Only when I add another output which is then again named "a" by default does the first one change to just "result" and not "a (result)"

    Lastly, if I copy the component inside the same definition using Ctrl+C/Ctrl+V, the output is again missing. Something very odd going on, and it has to do with how the 'a' output is hooked up, in combination with the 'out' output.

    To illustrate the point -
    From the Math menu, pull out a new Python component (no script necessary). By default, it has 'x', 'y' as inputs and 'out', 'a' as outputs. Right click the component and close the 'out' output. Now copy the component. It will go red and the 'a' output is missing. Now, grab a new Python component. Close the 'out' output as before (leaving 'a'). Add a new output 'b'. Copy the component. The 'a' output is missing, but the 'b' output is still there.

    This is GH 0.90010 in Rhino 5 x64 RC1

    Thanks, --Mitch

  2. #2
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    Thanks Mitch. I'm watching out for this stuff and noticed your post on the grasshopper forum; just didn't have the time to reply yet. I'll see what I can do about tuning up the component.
    -Steve

  3. #3
    Super Moderator Mitch's Avatar
    Join Date
    May 2010
    Location
    Switzerland
    Posts
    286
    Ok, thanks Steve - I guess you haven't gotten to this yet, still there in GH 0.90014 and V5 RCFinal... I know you have a lot of other stuff to do right now, so no worries.
    --Mitch

  4. #4
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    The bugs are entirely in the component code itself which is good since it means we don't have to change any of core Rhino code in V5 "RCFinal" to fix things. I'm hoping to be able to take some time in the next week or so to do some tune-ups on the component.
    Thanks,
    -Steve

  5. #5
    hello
    whenever i try to open the editor in the ghPython component, rhino crashes. i'm using Rhino 5 x86 Beta 2012-09-27 & 0.9.0014.
    thanks
    d

  6. #6
    all working now....found a way around it: installed gh v. 0.9.0006
    best
    d

  7. #7
    Super Moderator Mitch's Avatar
    Join Date
    May 2010
    Location
    Switzerland
    Posts
    286
    It should work in 0.90014, it does here (doesn't crash, that is)... --Mitch

  8. #8
    There's also this one: http://www.grasshopper3d.com/forum/t...ource=activity

    Now I'm not sure if this bug is caused on an individual component basis (as it also happens with certain mesh components in Grasshopper as well). However if it is, I thought I would just mention here as well.

    Best,
    Anders

  9. #9
    thanks mitch,
    it started crashing again, solved it (for now) replacing ghpython for this componentīs version:
    https://github.com/downloads/mcneel/...on_0_5_1_0.zip
    best
    d

  10. #10
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    Diego,
    My best guess is that you have two copies of ghpython on your computer and somehow the older one is getting loaded.
    -Steve

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts