Hi Mike A,
re:
> The problem is that unless I'm very careful to switch image plane visibility manually when
> reversing views the auto-flip of the image can make the * left side look like the right side *
> or vice versa because the image has been auto-flipped to face in the reverse direction.
This is the problem that the script that I posted previously was supposed to address.
But it looks like it wasn't quite set up how you need it, it was assuming that the image meant to be turned on in the Right view would have "right" in its name but you have it the other way around.
Please try this updated version instead:
script: /* Reverse view under mouse and switch images */ var vp = moi.ui.getActiveViewport(); if ( vp && vp.name != '3D' ) { var toshow='', tohide=''; switch( vp.name ) { case 'Top': toshow = 'top'; tohide='bottom'; break; case 'Bottom': toshow = 'bottom'; tohide='top'; break; case 'Left': toshow = 'left'; tohide='right'; break; case 'Right': toshow = 'right'; tohide='left'; break; case 'Front': toshow = 'front'; tohide='back'; break; case 'Back' : toshow = 'back'; tohide='front'; break; } var images = moi.view.getBackgroundImages(); for ( var i = 0; i < images.length; ++i ) { var img = images.item(i); var imgname = moi.filesystem.getFileNameFromPath(img.fileName).toLowerCase(); if ( imgname.indexOf( toshow ) != -1 ) { img.hidden = false; } if ( imgname.indexOf( tohide ) != -1 ) { img.hidden = true; } } moi.ui.mainWindow.viewpanel.reverseView( vp.name ); }
Set that up on a shortcut key and when you want to reverse a view use that shortcut key to do it. That should reverse the view and also handle hiding/showing the correct images this time so that you don't have to do any manual image visibility management.
Please let me know if that still isn't what you needed.
- Michael
|