Giter VIP home page Giter VIP logo

compas-actions.ghpython_components's People

Contributors

9and3 avatar arpastrana avatar chenkasirer avatar gonzalocasas avatar swilcock0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

compas-actions.ghpython_components's Issues

create .ghuser

Hi @gonzalocasas
I am trying to use this AMAZING feature but there is something that doesn't work in my workflow.

The action seems to be completed with positive result but I am not sure if everythings is correct.
Can you please assist?
Can you maybe create a quick .gif to show me?

I can not find a way to find the file on github at the end of the action

Thanks,
Marco

image

image

Descriptions missing in procedural mode.

I created a definition for a component in the procedural mode ("isAdvancedMode": false).

What's wrong?
In the built component all "description" values are ignored and a default text is displayed instead, except for the very first input parameter.

Example/Demo
code.py contains only:
c = a+b

metadata.json:

{
    "name": "TestSum",
    "nickname": "TestSum",
    "category": "Componentizer",
    "subcategory": "Test",
    "description": "Tests if the componentizer is working in procedural mode.",
    "exposure": 4,
    "ghpython": {
        "isAdvancedMode": false,
        "iconDisplay": 0,
        "inputParameters": [
            {
                "name": "a",
                "description": "First number",
                "typeHintID": "float",
                "scriptParamAccess": 0
            },
            {
                "name": "b",
                "description": "Second number",
                "typeHintID": "float",
                "scriptParamAccess": 0
            }

        ],
        "outputParameters": [
            {
                "name": "c",
                "description": "Sum of a and b."
            }
        ]
    }
}

Preview:
Correct:
image
Wrong/default:
image
image

Add Flatten/Graft/Symplify/Reverse

Feature Request:

It some situations it would be helpful to set, for example, a "Flatten" action on the input params as default, so that certain assumptions about the structure of the input can be imposed.
Would it be possible to add a corresponding flag to the metadata?

image

Any plans for updating to Python3?

Hello!

Big fan of the action and loved the brilliant way to generate .ghuser components from python and allow easy ci. Thanks!

I was wondering if there were any plans to update this to Python3 with the new Script component of Grasshopper.

I quickly got a look at the python and use pythonnet to replace some functionnalities of IronPython (e.g. the clr module's clr.AddReference(gh_io)), and it outputs the .ghuser files but they are still marked as "old" if imported into the grasshopper canvas.

Would you have any clue how to modify the componentize.py file to port this properly to the new CPython Script component? Would love to give it a go and open a PR if of any utility.

Cheers!

Data-type -> GeometryBase

Hi,

I think, there is no type for GeometryBase from the default list below.
How can I add a geometry-base type to this list?

Thank you :)

image

Cannot find GH_IO Assembly! Aborting

Hello :)

I am running the componentize from my machine and it looks like that GH_IO needs to be inside the folder ./lib
I would suggest to look for the GH_IO in the same folder where the .py is runned.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.