I don’t understand this. I thought you just wanted to turn all clipping planes on and off?
Hi Gustavo - Clipping plane uses the regular Rectangle control so you have the 3point and Vertical contraints. You can macro placing clipping planes as well, so one in the current CPLane
! _ClippingPlane 0 10,10
on the World ZX plane
! _ClippingPlane _3Point w0,0,0 w10,0,0 w10,0,10
As a vertrical plane to the current cplane (like CutPlane) Yeah this one is a little more obscure, but you can use mine =)
! _ClippingPlane _Vertical Pause Pause 10 r0,0,10
Any of that help, for now?
@gustojunk, Currently as far as I can see, -Properties for clipping planes is broken, but in the regular Properties dialog, you can control all selected clipping planes at once - SelClippingPlane then Properties and then uncheck all views. I know this is lame compared to a dedicated command that could remember the views and turn them back on, but it might help. For now.
thank you guys, this kind of helps, but not much since the biggest problems I still face is: if a clipping plane is hidden (object hidden, or layer hidden) I have no way to turn it off.
Pascal, any chance you can cook a lil’ script that does what SelClippingPlane>delete does, but it can select and delete all clipping planes in a file, regardless of object/layerstate visibility?
With that a a bit of macro tweaking based on your suggestions I would have a solidworks-llike section tool.
This should do it:
import rhinoscriptsyntax as rs clips=rs.ObjectsByType(536870912) if clips: rs.DeleteObjects(clips)
I’ve worked up a simple plug-in that contains two commands:
The plug-in work with 64-bit Rhino 5 only.
Let me know if this is helpful
GustoJunk.rhp (35 KB)
I just tried what you posted…
…the only way I know, and it’s not working. what should my text should look like to paste in a button? Apparently not like this:
(I’m shamefully thick for this stuff, sorry)
This is kind of useful, I think between this, Pascal’s macro idea and a fixed version of Mitch’s delete clippingplanes I can cobble something together. If it’s elegant I’ll report back.
It’s not a vb Rhinoscript, it’s a Python script. To run:
! _RunPythonScript (
<paste script here>
@gustojunk, just curious of my plug-in helped or not…
Hello guys, I’m reopening this thread as I’m working under Rhino 5 and as the quite the same questions as @gustojunk. The thing is, I don’t know anything about scripting and how it works, so I’m quite lost in your discussion.
I’m looking for somthing simple. I need to make, let’s say, 5 clipping planes of the same object, that I could easily toggle on / off. So I thought Creating a clipping plane, moving it to a layer, then simply toggle on/off the layer will do the job… but didn’t work. Someone as a plugin for that?
@dale, your toolsection plugin look awesome… but a bit to complicate. Maybe you can indicate me how I can achieve what I want with your plugin ? simply
You can toggle a clipping plane’s visibility using the Properties panel. Just un-check the clipped view(s):
Or am I confused what you want?
sorry dale, let me clarify a bit.
I have an object in my perspective view. that I want to cut at different angles. I want to be able to navigate in one click between one and another clipping plane. Is that possible ?
This isn’t a feature of Rhino. It may be possible for someone to write a utility to do this, however.
An easy work-around goes like this:
- Create a
NamedViewfrom your perspective view without any clipping planes active - name it e.g. v0
- Activate one of your clipping planes and make a new
NamedView- e.g. v1
- Activate your
- Activate an other clipping plane and make a new
NamedView- e.g. v2
Now, when you want to navigate between these clipped views, just type e.g. v4 on the command line (with
Enter) and your scene will be clipped with Clipping Plane number 4. [or you can use the
NamedView dialog box to navigate between them].
@wim Nice i like that option. I have done it in the past by coding clipping planes from grid-lines in GH and using a value list, but this keeps it all in Rhino which for some it better.
I guess you code all the saved viewports with there clipping planes in GH if you did not want to make them all manually. Though this could get complicated if you need the Clipping planes at different view angles in perspective for each view. Simple enough in parallel views i would think.
Thank you guys.
I finally end up creating something like you propose @wim.
- create 4 clipping plan. disable them like @dale suggest uppward
- create 4 cutplane parralle to each of the clipping plane.
- set camera perpendicular to cutplane ( _OrientCameratoSrf)
-make a view for each of them.
a bit of manual work but it does the job.
Woulb be nice tho to see a lilttle script for theses manipulation. @mattgaydon ideas ?
I would do it, but Idon’t know myself how to code…
Thank for help
Hi Charles, All,
I wrote a small tool for this a while ago, it may do what you were originally after. It has the “User approach” to how the ClippingPlane management should work intuitively (sorry Devs - the current implementation in Rhino is painful to work with). It should also work no matter if the clippingplanes are visible or not.
Here is the plugin (Windows only):
DIG_ClippingPlaneManager.rhi (13.2 KB)
The command is:
PS. There is a bonus functionality in it: if you want to have clipping planes corresponding to some NamedViews, add these NamedViews names as part of the corresponding ClipPlane names, space-separated. The MATCHING will detect the correct ones to turn on and off per-view…
AH ! @Jarek you have no idea how precisley its what i’m after.
Thank you so much for sharing ;). Hope its something that will be implemented in R7
Will it work with version 5?