Draw objects using GH_CPython - MahmoudAbdelRahman/GH_CPython GitHub Wiki
# -*- coding: utf-8 -*-
"""
Python Script
Created on Monday August 21 2017 02:30:57
@author: Mahmoud AbdelRahman
[name]Sample Plugin[/name]
[desc]
This is a sample plugin that draws
a single line in Grasshopper viewport
[/desc]
[message]SAMPLE PLUGIN
VER 0.0.1[/message]
ARGUMENTS:
----------
<inp> pointA : First point </inp>
<inp> pointB : Second point</inp>
RETURN:
----------
<out> Line_: The output line </out>
"""
import Grasshopper as gh
Line_ = gh.addLine(pointA, pointB)