compas-actions.ghpython_components icon indicating copy to clipboard operation
compas-actions.ghpython_components copied to clipboard

Feature request

Open obucklin opened this issue 1 year ago • 5 comments

Howdy!

I was hoping to implement some GH_Component override methods that only work on compiled components. See this image for reference:

image

This action creates a .ghpy file for the component, which is no longer editable as a python component on the canvas, but allows various overrides. have you guys considered this? Will the new cPython workflow for Rhino8 implement this?

Thanks!

obucklin avatar Nov 12 '24 13:11 obucklin

I think the major downside of .ghpy is that it doesn't work on Mac, or to be precise: it used to be that, we haven't tested if .ghpy + rhino 8 works on mac

gonzalocasas avatar Nov 12 '24 14:11 gonzalocasas

A quick check seems to indicate that this is still not supported on cpython + rhino 8 for mac:

image

gonzalocasas avatar Nov 12 '24 14:11 gonzalocasas

Howdy!

I was hoping to implement some GH_Component override methods that only work on compiled components. See this image for reference:

That would actually be cool. It's quite a pity that the compilation doesn't work on mac.

Still, I wonder if a component using modules, when compiled, would not require the modules to exist locally as .py somewhere. Do you know @gonzalocasas ?

9and3 avatar Dec 02 '24 17:12 9and3

Howdy! I was hoping to implement some GH_Component override methods that only work on compiled components. See this image for reference:

That would actually be cool. It's quite a pity that the compilation doesn't work on mac.

Still, I wonder if a component using modules, when compiled, would not require the modules to exist locally as .py somewhere. Do you know @gonzalocasas ?

I'm not entirely sure, but I think it would anyway be preferable to have those required modules as a python lib and use the # r: syntax in components to handle installation. Especially now that even the "pip from git" syntax works (i.e. # r: git+https://github.com/something/somerepo.git)

gonzalocasas avatar Jan 29 '25 12:01 gonzalocasas

Should we close this? Because I think it's not actionable on our side

gonzalocasas avatar Jan 29 '25 12:01 gonzalocasas