However, you can simplify the file paths to only require the file name itself, by using a variable within the script to store the parent folder path, or by placing all the images in the main Gig Performer folder on your system.įor the latter option, this GPScript function generates the file path to your main Gig Performer folder: GPImageViewer_DisplayImage(OSC_GetArgAsString(m, 0))īy default, your image file paths should be an absolute path. On OSCMessageReceived(m : OSCMessage) Matching "/ImageViewer" Note: There is a Tip at the end of this documentation about using relative file paths if you store the images in the Gig Performer folder.Copy and paste the below code into the relevant local/global Script Editor (accessible via the Gig Performer Window menu).ImageViewer "C:\Users\rank13\Pictures\gp-image-1.png" Add a Marker Action for Send OSC Message.Add an audio file and Markers at the point where the image should change.Add the Streaming Audio File Player to the local/global rackspace.Activate OSC in the Gig Performer Options window.GPImageViewer_DisplayImage(ImageFilePaths) On WidgetValueChanged(w : Widget, index: integer, newValue : double) from ImageButton1,ImageButton2,ImageButton3,ImageButton4,ImageButton5 "~/Pictures/gp-image-4.png" // Update this to your image location "~/Pictures/gp-image-3.png", // Update this to your image location "~/Pictures/gp-image-2.png", // Update this to your image location "~/Pictures/gp-image-1.png", // Update this to your image location "", // A blank file path will display the default image - the GP logo. ImageButton1,ImageButton2,ImageButton3,ImageButton4,ImageButton5 : Widget Click Compile at the bottom of the script editor.There is a Tip at the end of this documentation about using relative file paths if you store the images in the Gig Performer folder. Update the file paths to match images on your system.Copy and paste the below code into either the relevant local/global Script Editor (accessible via the Gig Performer Window menu).In this script example, 5 widgets have been named ImageButton1 to ImageButton5. In the Widget Properties Advanced tab, give each widget a unique name.In the Widget Properties General tab, map each widget to the same Radio Group.Add switch widgets to the local or global rackspace.GPImageViewer_ShowFullScreen (isFullScreen : Boolean).ShowFullScreen : Show the Image Viewer window in full screen or normal mode ""), then the default image is displayed (the GP logo). GPImageViewer_DisplayImage (path : String).They are all prefixed with GPImageViewer.ĭisplayImage : Display the image with the specified file path Usage GP Script FunctionsĪfter installing the extension, custom GPScript functions will be available to use, and are listed in the Code Helper autocomplete list. When opening Gig Performer, a prompt will appear asking to confirm whether to install the extension. C:\Users\Public\Documents\Gig Performer\Extensions
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |