SIMUL8 logo

Set Object Animation Image

Changes any of the animation images of an Activity.

Parameters

  • Activity - The name of the Activity to change
  • Image - The name of the image to be used
  • State - State when the image is to be used

Example

On Button Click Logic
Set Object Animation Image Activity 1 , Machines40 , Awaiting Work
Set Object Animation Image Activity 1 , Machines41 , Working
Set Object Animation Image Activity 1 , Machines42 , Blocked
Set Object Animation Image Activity 1 , Machines42 , Stopped
Set Object Animation Image Activity 1 , Machines43 , Change Over


The above code will set the specified images for each state of Activity 1. In order to select the images you want to apply, you must first import them into the Image Library.

To add images to the Image Library first, navigate to the View Tab, select Image Library, and then select Add From Library. You will now be able to add any image file from your machine to be used in SIMUL8 and the Visual Logic commands above.

Comments

This command is only available with SIMUL8 Professional.

Related Commands

logo
cleardot