line-weight Posted May 21, 2020 Share Posted May 21, 2020 Here is something I often want to do: go from a top-plan wireframe view of something, to a perspective projection, openGL render, and ideally a "top left" or similar orientation. As far as I can make out, I need to go through three dropdown menus to achieve this. First I have to switch from top/plan to left isometric, then from orthogonal to perspective, then from wireframe to OpenGL. That's very tedious so I end up using saved views - however, this is also far from ideal as it will throw me out of any container objects, as well as to a viewpoint that is not necessarily centred on the objects I am working on. Am I missing something - is there a straightforward way to do what I want? Quote Link to comment
markdd Posted May 21, 2020 Share Posted May 21, 2020 (edited) The only immediate way I know of doing this is to use the Default Render/3D projection buttons in the quick preferences bar. But you are fixed to one setting at a time..... and then use the numeric keypad to get the correct View. Edited May 21, 2020 by markdd 1 Quote Link to comment
line-weight Posted May 21, 2020 Author Share Posted May 21, 2020 25 minutes ago, markdd said: The only immediate way I know of doing this is to use the Default Render/3D projection buttons in the quick preferences bar. But you are fixed to one setting at a time..... and then use the numeric keypad to get the correct View. Thanks. This doesn't seem to work whilst I'm within a container object though. For example if I am editing within a group - I have those preferences set to openGL and perspective - but when I switch to a "left isometric" view, I get an orthogonal wireframe (in isometric view). Quote Link to comment
markdd Posted May 21, 2020 Share Posted May 21, 2020 (edited) How right you are. I've never noticed that behaviour before. Probably because I don't really use those buttons that much. I always use the Open GL keyboard shortcut. shift+cmd+G. Perhaps there is a scripting option? Edited May 21, 2020 by markdd Quote Link to comment
Pat Stanford Posted May 21, 2020 Share Posted May 21, 2020 Have you checked the settings in VW Preferences:3D tab? This wil give you the default render mode and perspective. You are correct that it does not work inside of groups. Good suggestion for a wish. Quote Link to comment
line-weight Posted May 21, 2020 Author Share Posted May 21, 2020 Yes, I've checked those too. This has always confused me. Now I realise why I was never quite sure what was going on: it's because it doesn't work when you're inside a group. I think this is a bug rather than a wish. I don't see why that behaviour would be intentional. Actually ... it is kind of mentioned in this thread, in JimW's post on the first page. That's from 3 years ago and pretty much none of that has been fixed as far as I know, so I'll put this on the long list of annoyances that will probably be with us for many years to come. Quote Link to comment
line-weight Posted May 21, 2020 Author Share Posted May 21, 2020 38 minutes ago, markdd said: Perhaps there is a scripting option? If there is, and someone has the skills to write it, they would be very popular I think! 1 Quote Link to comment
Ride Posted May 24, 2020 Share Posted May 24, 2020 Using the keyboard to change to openGL is pretty quick. Quote Link to comment
Pat Stanford Posted May 25, 2020 Share Posted May 25, 2020 OK, the following script will change the projection to Normal Perspective and the Render Mode to Open GL. If you go to Tools:Plug-ins...:Plug-in Manager and then to 3rd Party you can create a new Plug-in Command, click the Edit Script button and paste the script below into the window. Then edit your workspace to add the command and give it a keyboard shortcut. If you really wanted to get fancy we can add the view to change to as well, but you would have to have different versions for each different view. I don't think you can over-ride the keypad view commands or it would be kind of nifty to be able to hit (say) Option-1 on the keypad and get it to switch the view and change the render mode. For now you will have to change the view and then run the script. Procedure OpenGLandPerspective; {May 25, 2020} {©2020 Patrick Stanford pat@coviana.com} {Licensed under the GNU Lesser General Public License} {No Warranty Expressed of Implied. Use at your own risk.} Begin DoMenuTextByName('Projection',5); DoMenuTextByName('OpenGL Render Chunk', 1); End; Run(OpenGLandPerspective); Quote Link to comment
line-weight Posted May 26, 2020 Author Share Posted May 26, 2020 11 hours ago, Pat Stanford said: OK, the following script will change the projection to Normal Perspective and the Render Mode to Open GL. If you go to Tools:Plug-ins...:Plug-in Manager and then to 3rd Party you can create a new Plug-in Command, click the Edit Script button and paste the script below into the window. Then edit your workspace to add the command and give it a keyboard shortcut. If you really wanted to get fancy we can add the view to change to as well, but you would have to have different versions for each different view. I don't think you can over-ride the keypad view commands or it would be kind of nifty to be able to hit (say) Option-1 on the keypad and get it to switch the view and change the render mode. For now you will have to change the view and then run the script. Procedure OpenGLandPerspective; {May 25, 2020} {©2020 Patrick Stanford pat@coviana.com} {Licensed under the GNU Lesser General Public License} {No Warranty Expressed of Implied. Use at your own risk.} Begin DoMenuTextByName('Projection',5); DoMenuTextByName('OpenGL Render Chunk', 1); End; Run(OpenGLandPerspective); Thank you for this - very kind of you! I've set it up (I'm currently on 2018) It works perfectly when I'm within a group - which is great. This will be very useful. When I run it outside of a group though I find that it first changes the projection to perspective, but I have to run it a second time to get it to change to OpenGL. This is not too much of a big deal as it's quite easy to just hit the shortcut button twice. Would it be straightforward to make it change the view as well? If it could also change to, say, left isometric that would be really helpful. I don't atually mind which direction the view is; what's more important is that I can see what's going on in 3d, and I can then easily fly around to the angle I want, if it's different. Quote Link to comment
hollister design Studio Posted September 21, 2022 Share Posted September 21, 2022 @Pat Stanford just wanted to thank you for writing this! and @line-weight - thanks for letting me know this exists - just added it to my wacom express keys! 1 Quote Link to comment
line-weight Posted September 21, 2022 Author Share Posted September 21, 2022 I use it all the time & couldn't live without it now! Quote Link to comment
E|FA Posted September 21, 2022 Share Posted September 21, 2022 On 5/25/2020 at 3:44 PM, Pat Stanford said: the following script will change the projection to Normal Perspective and the Render Mode to Open GL @Pat Stanford How would I edit the script to set the view to Orthogonal instead of Normal Perspective, with Shaded rendering? Thanks. Quote Link to comment
Pat Stanford Posted September 21, 2022 Share Posted September 21, 2022 I think this will do what you want. The number is just the position of the line you want in the Perspective or sub sections of the Render menu items. DoMenuTextByName('Projection',2); DoMenuTextByName('OpenGL Render Chunk', 1); 1 Quote Link to comment
E|FA Posted September 21, 2022 Share Posted September 21, 2022 Works great. Thanks. Quote Link to comment
line-weight Posted September 22, 2022 Author Share Posted September 22, 2022 10 hours ago, Pat Stanford said: I think this will do what you want. The number is just the position of the line you want in the Perspective or sub sections of the Render menu items. DoMenuTextByName('Projection',2); DoMenuTextByName('OpenGL Render Chunk', 1); Is there an equivalent for the menu that lets you choose the view (top/plan, front, left iso etc)? Quote Link to comment
Pat Stanford Posted September 22, 2022 Share Posted September 22, 2022 DoMenuTextByName('Standard Views', X); I believe these are the correct replacements for X, but I have not tested. Top/Plan 1 Top 2 Front 3 Right 4 Bottom 5 Back 6 Left 7 Right Isometric 8 Left Isometric 9 Right Rear Iso 10 Left Rear Iso 11 Lower Right Iso 12 Lower Left Iso 13 Lower Right Rear 14 Lower Left Rear 15 2 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.