Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Access to Script component which maintains the script #44

Open

Description

@sbaer

Add built-in variable for ghpython scripts to access Grasshopper.Kernel.IGH_ActiveObject. This allows for access to the same bits and pieces that VB/# scripts have access to in grasshopper. See the DottetLine.gh VB script component for a sample
http://www.grasshopper3d.com/forum/topics/display-pipeline?commentId=2985220%3AComment%3A639887

Activity

  1. piac commented on Oct 23, 2013

    @piac
    Member

    ghenv.Component provides access to that instance.

    Similarly to the way other scripting components address this, I also think that the ghPython component should provide some special names that are called to calculate the bounding box or show mesh and curves preview. This would make it a lot easier to override the drawing behavior.

    We could even possibly encapsulate the current code into a class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions