Skip to reading
PCA Script Programming

carousel_remove_image()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Carousel: Remove Image | Action ID: CarouselRemoveImage

Remove a selected image asset from a carousel's authored/runtime list.

Source table from carousel_remove_image(), page 179
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Image Carousel elementIdChoose an element inside the selected GUI.Blank
Image Asset assetIdChoose an imported image.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
carousel_remove_image({"guiId": "hud", "elementId": "topline", "assetId": "your_asset"})

In use. Remove a temporary clue image when the inspection ends. Check what happens if it was the current slide, and test the first/last-image behavior.

carousel_clear_images()#

Carousel: Clear Images | Action ID: CarouselClearImages

Clear a carousel's image list.

Source table from carousel_remove_image(), page 179
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Image Carousel elementIdChoose an element inside the selected GUI.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
carousel_clear_images({"guiId": "hud", "elementId": "topline"})

In use. Reset a manual inspection gallery before filling it with another object's images. Inventory-driven carousels can obtain their contents from inventory instead; update the appropriate data source.

Page 179 of 357Permalink
Go to page