+ Reply to Thread
Results 1 to 2 of 2

Thread: displaying objects (grasshopper python component)

  1. #1

    displaying objects (grasshopper python component)

    hi folks,

    i have the problem that code in gh component is not executed in viewport ( no error in code)
    if i put the same in python editor and execute everything works well.

    Code:
    import math
    import rhinoscriptsyntax as rs
    
    newCircle = rs.AddCircle([0,0,0] ,n)
    
    areaNew = rs.Area(newCircle) 
    areaGh = rs.Area(circleGh)
    
    print(areaGh)
    print(areaNew)

  2. #2
    hi once again,

    i figuered out, which is quite obvious (at least now). when creating new stuff in the component by code, they are displayed if a ouput is linked to them.
    Last edited by pyrit; 07-11-2012 at 11:32 AM.

+ 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