Referencing custom Cplane

Hi, is there a way to reference a custom Cplane from within GH?
e.g get the cplane’s z vector

If you define a Plane you also have access to its properties Plane.Origin and Plane.Normal ( = “Z”) etc.

// Rolf

yes, I am talking about Cplanes defined in Rhino
(I have an old file with many custom Cplanes from within Rhino and I don’t want to go through the proccess of redefining them one by one in GH)

No there’s no concept of C-Planes or M-Planes in Grasshopper. It’s probably possible to harvest them via some script though.

ok thanks!
It’s no big deal, it’s an old model from the pre-GH days. Not worth the while… I’ll just do them manually!

cplane harvester.gh (9.1 KB)

cplanes.3dm (33.1 KB)

4 Likes

Actually, I made it so that you can reference CPlanes from the Rhino doc in GH.

Use the Guid parameter input, then select the Clipping plane as your input. Now you can feed this in the Plane parameter.

Refer to Problem with determining point based on surface UV

1 Like

Hi Nathan,
@nathanletwory
Last night I was thinking of creating a transform space plugin but how to use Mplanes in Gh?
In your example it doesn’t set the cplane or return it but no matter because what you did got me heading in the right way if one first attaches an Mobile plane (Mplane) to the clipping box then uses your method then one can both constantly know where the cplane is and use it to create geometry inside surfaces models etc much like the way section tools works I think using this with make 2d could lead to something.

Also I haven’t checked Davids gh file seems he found a way to list the cplanes which I need to interact with explained below.

However what I would need is a list of cplanes and mplanes that I could propagate items to. I would like to use the Rectangle mapping component to create a transform space that would propagate the model rectangle to any of the chosen cplanes and or mplanes. I think it’s doable in GH but I need to get a list of cplanes and work with that list.

I’m currently doing this in Rhino working on a movie set which is like Fred Astaire dancing on the ceiling so I need to transform the room plans to the walls and ceiling etc. I currently set mplanes and use remap cplane but I would like to do it all at once from a list of cplanes in Gh. Also I need to add items with texture maps and I don’t know how to do that in GH as well. I really hope David will add array objects with textures and getting this kind of info like he just listed.

One little display bug, in ghosted mode the fill is shown as solid when using the clipping plane and I think the fill should be ghosted too?

Thanks for your hints,
RM

Thanks David checking on this now to see if I can use it in a transform space definition or plugin.
See post to Nathan
RM

My bad. I read clipping planes when I saw cplanes.

Hi David,

Thanks for your script.

This is great and I see a lot of potential for Architects on managing CPlanes from Grasshopper.

I use CPlanes at different levels and alignments on my building but this is so hard to manage when a change in the design implies changing the elevation of all the cplanes and or their orientation.

Do you know of any script out there capable of creating / deleting / modifying CPlanes on Rhino. Couldn’t find anything I don’t know much about writing code…

Thanks!

Ivan

Quite solved here:

Sorry if I resume the discussion, but I hope that things will be simpler after some time.
Do you know how I can draw a sketch on a list of frames?