question

Kari Payton avatar image
0 Likes"
Kari Payton asked Cliff King commented

Set view on video recorder as first person from operator.

How can I use the video recorder to record from the first person view of the operator?

FlexSim 17.2.2
video recorder
5 |100000

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

1 Answer

Jacob Gillespie avatar image
4 Likes"
Jacob Gillespie answered Cliff King commented

The easiest way to do this is to tell the view to follow the operator before telling it to record.

If you want to start following at certain point during the model run then you would have to use the function_s api.

function_s(view, "follow", object); // Pass in NULL to stop following
function_s(view, "setFollowRotate", boolean);
function_s(view, "setFollowFirstPerson", boolean);

Another tricky thing is that the video recorder creates its own hidden 3D view on which you also need to call follow.

If this is my 3D view:

VIEW:/some/path/Perspective

The hidden 3D view will be something like this:

VIEW:/some/path/Perspective/RecordingPopup2412423376/recview

I will change this so that follow will call itself on the hidden 3D view. This change will be in the next bugfix: 17.2.4


follow.png (13.7 KiB)
· 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.

Cindy Azuero avatar image Cindy Azuero commented ·

Is there a way to do this, but following a FlowItem?

0 Likes 0 ·
Cliff King avatar image Cliff King Cindy Azuero commented ·

Everything explained for how to follow an operator applies to following an item. You can either start the model running and then right-click the item you want to follow and then choosing to follow it, or you can use the commands specified above to follow the flow item. You will simply need to correctly reference the item you want to follow, and restrict the commands being executed to a single item at a time.

You do not need to worry about calling the commands on the hidden 3D window used by the video recorder (assuming you're even using the video recorder), because the latest version of FlexSim will automatically follow in both the 3D view you specified and the hidden 3D view.

2 Likes 2 ·