Script for viewport button

Forums: Script for viewport button
Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Script for viewport button

Postby fabrizio_s » Thu Oct 05, 2017 5:29 pm

fabrizio_s Thu Oct 05, 2017 5:29 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
fabrizio_s
Licensed Customer
Licensed Customer
 
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Re: Script for viewport button

Postby face_off » Thu Oct 05, 2017 7:36 pm

face_off Thu Oct 05, 2017 7:36 pm
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
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15471
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Script for viewport button

Postby fabrizio_s » Thu Oct 05, 2017 9:21 pm

fabrizio_s Thu Oct 05, 2017 9:21 pm
Thank you very much, Paul!
fabrizio_s
Licensed Customer
Licensed Customer
 
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Re: Script for viewport button

Postby franchais » Thu Oct 05, 2017 10:26 pm

franchais Thu Oct 05, 2017 10:26 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
franchais
Licensed Customer
Licensed Customer
 
Posts: 104
Joined: Fri Mar 02, 2012 2:44 pm

Re: Script for viewport button

Postby fabrizio_s » Fri Oct 13, 2017 10:06 pm

fabrizio_s Fri Oct 13, 2017 10:06 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
Licensed Customer
 
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Re: Script for viewport button

Postby fabrizio_s » Thu Oct 26, 2017 10:46 pm

fabrizio_s Thu Oct 26, 2017 10:46 pm
Hi Paul,
did you try to look at this functionality?

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

Re: Script for viewport button

Postby face_off » Fri Oct 27, 2017 3:28 am

face_off Fri Oct 27, 2017 3:28 am
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
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15471
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Script for viewport button

Postby fabrizio_s » Fri Oct 27, 2017 6:44 am

fabrizio_s Fri Oct 27, 2017 6:44 am
ok thanx
fabrizio_s
Licensed Customer
Licensed Customer
 
Posts: 345
Joined: Fri Feb 03, 2017 12:14 pm

Return to Rhinoceros 3D


Who is online

Users browsing this forum: No registered users and 6 guests

Thu Mar 28, 2024 12:34 pm [ UTC ]