Make buttons to rotate cplane in different directions

Hello,
Cplanes can be a bit confusing for me, but for a plugin I use I need to master them. I would like to make a button (or buttons) to rotate the cplane in different increments of different directions.

Someone I know gave me a tip of ('_CPlane _Rotate 0.0.0 10.0.0 45) for one of the macro commands, but that also doesnt seem to be working. The -45 is not recognized

How do i go about doing this?

Did you try commas instead of periods for the coordinates?

'_CPlane _Rotate 0,0,0 10,0,0 45
'_CPlane _Rotate 0,0,0 10,0,0 -45

I did not. Youre my hero.
Could you please tell me where i can find a “map” of the coordinate system in rhino so I can see which of the 0,0,0 0,0,0 I have to adjust?

Hi Ian -

If you show the grid with the X and Y axes, that grid is the map of the active CPlane.
-wim

Really excuse my ignorance as you can tell im new to this
coordinates are x,y,z and the 45 is the degree of rotation. so why are there 6 coordinates. 0,0,0 0,0,0

Each set of three numbers represents an X,Y,Z coordinate of a point. The command requires two points to determine a line which will be the axis about which the CPlane will rotate. As specified above, the coordinates are in the active CPlane coordinates. The macro above will rotate about the X axis.

Also, if you are rotating around any of the 3 axes, you can just use the X, Y, or Z shortcut instead of entering two coordinates for an axis.
-wim

1 Like