question

anon-user avatar image
0 Likes"
anon-user asked Jason Lightfoot edited

How to fine-tune the rotation of the model

To rotate the model in any direction, right-click somewhere in the model. Then move the mouse left or right to rotate the model horizontally, or move the mouse up or down to rotate the model vertically.


However, it is difficult to fine-tune the rotation with this mouse method.


Is there a way to fine-tune the rotation of the model using the keyboard?

Is there a way to fine-tune the rotation of the model using a script


FlexSim 20.1.3
flexsim 20.1.3rotationmodel building
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

anonymous user What do you mean by "fine-tune"? Do you want to rotate the view to a specific angle like 90 degrees?

0 Likes 0 ·
anon-user avatar image anon-user Matthew Gillespie ♦♦ commented ·

I want to rotate in 1 degree increments.

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

I find a 3D mouse is the best option.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Jason Lightfoot edited

You can use a script like this to set the view's rotation to any specific values you want:

treenode view = activedocumentnode();
viewpointrx(view).value = -90;
viewpointry(view).value = 0;
viewpointrz(view).value = 90;

If you don't want to rely on the 3D view being the currently active view you would use code like this to get a reference to the first open 3D view:

treenode view = views().find("active>Documents/Perspective/1+/~");
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Or you can right click in the view and set it as sv() and use that as a reference in your script.

0 Likes 0 ·
1611017539265.png (31.1 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.