Script for viewport button

Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Post Reply
fabrizio_s
Licensed Customer
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Hi,
I'd like to create a button that creates a new viewport with the same size of Film Settings Resolution. Now I write the film size manually in the script of the button.
Do you know how to copy the values of the octane film setting and put automatically in the script?

thanx
Attachments
Button viewport.jpg
User avatar
face_off
Octane Plugin Developer
Posts: 15696
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

I'm not sure you can change the resolution settings via a Rhino command. I will need to check early next week, and add that functionality if it is not already there.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
fabrizio_s
Licensed Customer
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Thank you very much, Paul!
franchais
Licensed Customer
Posts: 104
Joined: Fri Mar 02, 2012 2:44 pm

yes it would be great to be able to save your own viewport resolutions
I7 2600k | EVGA gtx 680 FTW 4gb | Win 7 x64 | 16gb RAM
fabrizio_s
Licensed Customer
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Hi,
here is a button that creates a viewport with the dimension (or percentage) of the Octane rendering viewport. The script isn't mine because I'm not a coder. I asked in the Rhino forum how to write this script and two coders helped me to build it.
For now, the resolution of this window doesn't come automatically from the octane film setting. You have to change it manually (shift+right click) inside the code of the button.

Hope you like it

http://www.filedropper.com/octaneviewport
fabrizio_s
Licensed Customer
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Hi Paul,
did you try to look at this functionality?

bye
User avatar
face_off
Octane Plugin Developer
Posts: 15696
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Hi, I am trying to get all the 3.07 final releases done, and will then take a look. Sorry for the delay.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
fabrizio_s
Licensed Customer
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

ok thanx
Post Reply

Return to “Rhinoceros 3D”