Script request
 1-20  21-35

Previous
Next
 From:  Michael Gibson
9322.21 In reply to 9322.19 
Hi Quaritexa,

re:
> This Views switching is very convenient. I've using it for the several days. If it were possible to
> solve the tilt problem, it would be generally luxurious.

I posted an updated script that handles Tilt for the Top/Bottom views:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9322.17

It should be behaving like the example images you posted above.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9322.22 In reply to 9322.20 
Hi Burr, yes another possibility could be to change the 3D view's camera location only instead of switching to the ortho viewport. But that would involve switching more things around like the construction plane and also probably switching perspective projection on and off.

There is also additional 2D behavior that you get in the ortho views like when drawing snap points will project to a common plane instead of allowing a drawn object to vary in height.

> Is it possible to get that camera point without moving to the actual ortho viewport? Just a thought.....

It is possible.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  nameless
9322.23 In reply to 9322.20 
Hi BurrMan,

Actually, the current state is better than what you describe in my opinion, as true ortho views offer different functionality (gizmo, array behavior) than a 3d cam of the same angle. I find the original script awesome. Only top and bottom views can potentially snap to a different angle than what you would expect, which is very minor and you can easily work around it.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
9322.24 In reply to 9322.23 
Ok, good. I just misread the intent of the request.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9322.25 In reply to 9322.21 
I tested both scripts. And in some angles it works wrong:
https://dl.dropboxusercontent.com/s/kxy9marh3cthohz/_SetNearestOrthoView.mp4
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9322.26 In reply to 9322.25 
Hi Quaritexa, currently what the second script tries to do is to match the x-axis direction of the 3D view's cplane by tilting the ortho view.

If your view is not centered on the cplane origin then it will probably lead to those kinds of problems.

I think that the problem is that the "right thing to do" needs to be more completely and definitely specified. It's not possible to write a script just by writing "Do what I was thinking", it has to be broken down into very specific steps.

If you can describe a more detailed and exact algorithm for how it should work, that would help.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9322.27 In reply to 9322.26 
I think it needs to rotate only top and bottom projection accordingly to 3d view.
SetNearestOrthoView2.js do it like expected. It switches this view:

to that:


But after it once switch the top view, it starts wrong switching the side view. From this:

to that:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9322.28 In reply to 9322.26 
Michael, have I explained in sufficient detail or do I need to add something else? I apologize in advance if I express myself incomprehensibly. English is not my native language.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9322.29 In reply to 9322.28 
Hi Quaritexa, I've been trying what you were describing but I've been getting inconsistent results that have been confusing me. I'm not sure if there is a bug that I haven't been able to track down or something like that.

I don't think that I will be able to experiment with it much more right now, it's very time consuming.

If you want to test just modifying the #2 version to only do the twist on Top or Bottom views, you could try modifying the script by finding the part that has this comment:
// Added below for calculating tilt.

and right below that put in an

if ( name == 'Top' || name == 'Bottom' )
{


>>Put the tilt processing here


}



- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9322.30 In reply to 9322.29 
I tested it a bit. Seems to work just fine. Exactly what is needed.

Thank you so much Michael.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  nameless
9322.31 In reply to 9322.30 
Hi Quaritexa,

Did you end up modifying the second script? Can you share the script version that works 100% for you?

I will play with the line Michael pointed at and see what I get just for fun.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9322.32 In reply to 9322.31 
yes

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  nameless
9322.33 In reply to 9322.32 
Thanks! I tested it and I got an odd single instance of weird rotation, but I couldn't reproduce it and it seems to be working fine in all angles now. super!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9322.34 
Seems not for me... Must be the big full top face view no ? Not sure...
What is the nearest ?

EDITED: 29 Jun 2020 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Frenchy Pilou (PILOU)
9322.35 
Else in case of...you can input any numbers
script: /* Toggle FOV */ var other_angle = 40.0; var v = moi.ui.mainWindow.viewpanel.getViewport('3d'); if ( v.projection == 'Perspective' ) { if ( v.fieldOfViewAngle == other_angle ) { v.fieldOfViewAngle = 27.5; } else { v.fieldOfViewAngle = other_angle; } }

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-20  21-35