OneView - Thanks


(Wim Dekeyser) #1

Thank you for implementing the AutoCPlane script as a new native command - OneView!!:thumbsup:
And it works as it should :sunny:


(Wim Dekeyser) #2

Not sure why it maximizes a viewport though. I run this in my startup commands and my template is saved as 4-view layout but this now opens with one maximized viewport.


#3

AutoCPlane doesn’t seem to be documented as of yet. How is i supposed to function?

// Rolf


(Wim Dekeyser) #4

AutoCPlane never was a native command. It was a script that was originally written by Pascal and that now finally has made it as a native command as OneView (fully documented :wink:) .


#5

OK, now I get it. I’m slow today! :slight_smile:


#6

Hey this sounds cool!
I tried the v5 plugin but it doesn’t do anything. Is there a version that works with the current v5 SR13?

thanks, Tobias


(Wim Dekeyser) #7

There were quite a few versions of the script floating around - did you try the one from this link?

EDIT - going through that thread a bit more, here’s a link to the version that I found useful (and that is like the current OneView command).

https://discourse.mcneel.com/uploads/default/14572/e6759000a3a9f255.py

posted here:


#8

Yes, I tried that one but it doesn’t do anything.
I tried it on my workstation and on my laptop. Same result


(Wim Dekeyser) #9

Just updated that post with a link to a python script…


#10

There seems to be a problam with Python.Running the script I get this error:

The object from this error is rhinoscriptsyntax. The line raising the error reads:
angle = rs.GetInteger(“Set CPlane swap angle”, defAngle, 1, 44)

What could possibly be wrong?


(Wim Dekeyser) #11

Yea… I remember that one. Just comment out the first two lines and that should do it.
Attached a version that works on my RH5 SR13…

AutoCPlane.py (9.0 KB)


(Wim Dekeyser) #12

Well…
@brian, I’m not sure why OneView is listed as a New Feature in the change log.

2015-09-25:

… but at least now that command works as it should! :grin:


#13

Still the same line gives an error: ‘module’ object has no attribute ‘GetInteger’


(Wim Dekeyser) #14

Tobias, did you restart Rhino after downloading that python script? Grasping at straws here until a bigger brain wakes up…


#15

Yes, I did restart Rhino…
Thanks for looking into this issue


(Willem Derks) #16

Great! I saw the OneView command pass by and wondered what it did…

As a regular command name critic may I add my observations:

@pascal what is the thinking behind the name chage to OneView as opposed to AutoCplane. In my thinking the functionality of this command is operating on the Cplane: setting it based on view angle. The name OneView does not cover that. Rather it suggests a command to maximize to a single view or something. However it can be set to any arbitrary number of views right?

I get that the name is a suggestion the command is for working in one view. However that is what it enables rather than the functionality of the command.

In addition, by stacking actions in one command (auto cplane & maximizing the view) it’s easy to mistake this command for a maximize view and the user missing the autocplane.

If I as a user were to suddenly have the Cplane change all the time I’d start searching for commands with “Cplane” in it. Not view or one.

So I’d opt for a AutoCplane command and maybe macro a OneView command by stringing a maximize view to it.

-Willem


(Pascal Golay) #17

Hi Willem - I was very much on the sidelines as far as the naming goes, but I think @theoutside, who was the moving force behind this, was thinking of it as a good way to work in a single maximized viewport.

-Pascal


(Mikolaj Jarski) #18

I wish OneView labels were tuned up. Now there are different fonts and alignment within label. Perhaps the style could match the one of viewport name?

image
image
image
image