From: vector illustrator (QUARITEXA)
Why the tilt on bottom view jumps like a crazy?
https://dl.dropboxusercontent.com/s/yn1kwx34bxebctm/200415074450.mp4
From: Michael Gibson
Hi Quaritexa, I think there is some bug with setting view angles that I haven't been able to track down yet.
Does it behave any better if you get the new tilt into its own variable and then set it on the viewport twice in a row?
- Michael
From: Michael Gibson
Or something like with the bottom view both "left/right angle" and also "tilt angle" are both trying to rotate and measure angles around the same z axis direction.
When you set the view angle properties those angle values themselves are not actually stored, the thing that actually defines a view is a camera point, a view direction and an "up" direction. When you read a view angle property the angles are calculated from those directions.
Another thing you might try is get all 3 values .upDownAngle, .leftRightAngle, and .tiltAngle , then add on to the tilt angle and set them all with .setAngles( updown, leftright, tilt );
- Michael
From: vector illustrator (QUARITEXA)
setAngles didn't helps.
From: Michael Gibson
Does it behave any better if you get the new tilt into its own variable and then set it on the viewport twice in a row?
- Michael
From: vector illustrator (QUARITEXA)
Same result.
From: Michael Gibson
How about:
script: var vp = moi.ui.mainWindow.viewPanel.getViewport('Top'); vp.setAngles( 180, 0, vp.tiltAngle + 15 ); vp.setAngles( 180, 0, vp.tiltAngle );
- Michael
From: vector illustrator (QUARITEXA)
Oh, it's a very strong magic. Thanks, Michael =)
From: Whiteman Dynamic (TIM_WHITEMAN)
You're incredibly well-mannered and patient with abrupt responses Michael! lol :D
From: Michael Gibson
Hi Tim, well one thing that I try to keep in mind is that there are many people on here for whom English is a second language. So it tends to be best not to read dire intent behind things like that.
- Michael
From: vector illustrator (QUARITEXA)
It's true. Many people for whom English is not native simply do not have the etiquette of communication. So do not be offended by us. This is not due to rudeness, but from insufficient knowledge of the language.