• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

1stplugins

FileMaker plug-ins and Reverse Engineering

  • Plugins
    • MediaManager
  • Services
    • Reverse Engineering
    • FileMaker Plug-Ins
  • About
    • About Us
    • Contact Us
    • Terms of Use of the Website and Privacy Policy
  • Store
    • Terms and Conditions
    • Warranty Claim Guidelines
    • Contract Withdrawal Form
    • Warranty Claim Report

Media_EffectDialog

Media_EffectDialog ( effectType { ; previewImage1 { ; previewImage2 } } )

Media_EffectDialog displays the effect dialog, allowing the user to choose an effect, specify its settings, and see a preview of the result in a preview thumbnail image.

Parameter Description
effectType A string that specifies the effect or effects to display. Use “” (blank) to allow the user to choose any effect. Use the four character effect type to show the parameter dialog for a specific effect (see below).
previewImage1 Optional image to use as the effect preview in the dialog. If omitted, a default image will be used.
previewImage2 Optional image to use as the effect preview in the dialog, when a two source effect is displayed. If omitted, a default image will be used.

Once the user chooses an effect, a text string is returned that describes the selected effect and its parameters (in XML formatting). This description XML text must be passed to Media_EffectApply to apply the effect to an image. You can edit this string manually or via script, calculation, etc. to change the final effect that is applied.

Effect Type Code

If you want to specify the user’s choice of effects, you can use the four character code as the first parameter for the effect you want to allow. You can find this four character code in the returned description XML text. Us the “ostype” value within the atom tag. For example, the code for the Brightness/Contrast effect (from the description XML below) is “brco”.

If you want to give the user the full list of effect options, leave this parameter blank “” instead.

Activated by Media_EffectApply.

Returns

This function returns an XML text description of the effect selected along with the settings specified. As an example, the description response for the Brightness/Contrast effect is:


<effect>
<!-- Brightness and Contrast Effect -->
<!-- Copyright: Standard QuickTime Effect by Apple Computer, Inc. -->
<!-- Allows you to adjust the brightness and contrast of a single source. -->
<!-- This effect takes one source as input -->
<!-- This effect's major class is: Filter -->
<!-- This effect's minor class is: Adjustments -->
<atom type="what" id="1" ostype="brco" />

<!-- __Brightness__ -->
<!-- Cannot be interpolated -->
<!-- Value must be between -100 and 100 -->
<atom type="bryt" id="1" long="16" />

<!-- __Contrast__ -->
<!-- Cannot be interpolated -->
<!-- Value must be between -100 and 100 -->
<atom type="cntr" id="1" long="30" />
</effect>

If the user cancels the dialog, $xxx:Cancel is returned.

Examples

To display the effect dialog and place the resulting description text into a field named “Effect Description”:

Set Field [ MyTable::Effect Description ;
Media_EffectDialog ( ""; ""; "" ) ]

To call the effect dialog and specify the picture in “Image Original” as the preview image used in the effect dialog:

Set Field [ MyTable::Effect Description ;
Media_EffectDialog (
"" ;
MyTable::Image Original
"" ) ]

To specify both “Image 1” and “Image 2” as the preview images used in effects that rely on two images:

Set Field [ MyTable::Effect Description ;
Media_EffectDialog (
"" ;
MyTable::Image 1
MyTable::Image 2 ) ]

To call the effect dialog with only the Brightness/Contrast effect:

Set Field [ MyTable::Effect Description ;
Media_EffectDialog (
"brco" ;
MyTable::Image Original
"" ) ]

To call the effect dialog and apply the selected effect to an image stored in a field named “Image Original” and place the modified image in a field named “Image Result”:

Set Field [ MyTable::Effect Description ;
Media_EffectDialog (
"" ;
MyTable::Image Original ;
"" ) ]

Set Field [ MyTable::Image Result ;
Media_EffectApply (
MyTable::Image Original ;
MyTable::Effect Description ) ]

Primary Sidebar

Document Functions

Media_CopyItem
Media_CreateAlias
Media_CreateFolder
Media_DeleteItem
Media_ExportField
Media_ExtractInfo
Media_GetDefaultFolder
Media_GetItemInfo
Media_GetName
Media_GetPath
Media_InsertFile
Media_ListDisks
Media_ListFolder
Media_MoveItem
Media_OpenItem
Media_RenameItem
Media_Search
Media_SetDefaultFolder

General and Registration Functions

Media_Get
Media_GetLastError
Media_GetMouseUp
Media_JSONPath
Media_PeekStream
Media_Register
Media_RegisterLicensedEncoder
Media_Set
Media_Version

Image Functions

Media_ConvertImage
Media_CreateQRCode
Media_EffectApply
Media_EffectDialog
Media_GetImageInfo
Media_GetMetadata
Media_InsertImage
Media_ListImageOutputTypes
Media_SetImageDefaults Media_TApply
Media_TClear
Media_TCrop
Media_TQuad
Media_TResize
Media_TRotate
Media_TScale
Media_TSkew

Script Steps

Copy Item
Create Alias
Create Folder
Delete Item
Export Field
Get Default Folder
Get Item Property
Move Item
Open Item
Rename Item
Set Default Folder

Sound Functions

Media_Amplify
Media_AppendSound
Media_ConvertSound
Media_CreateSound
Media_DrawWaveform
Media_ExtractSound
Media_FadeSound
Media_GetMetadata
Media_GetSoundInfo
Media_InsertQuickTime
Media_ListSoundOutputFormats
Media_MixSounds
Media_Normalize
Media_PlayPause
Media_PlaySound
Media_RecordSoundFormatDialog
Media_RecordSoundStart
Media_RecordSoundPause
Media_RecordSoundStop
Media_SetMetadata
Media_SoundFormatDialog
Media_StopSound

Video Functions

Media_GetVideoInfo

Footer

Let’s get started on your project.

Get in touch

  • Plugins
  • Services
  • About
  • Store

Copyright ©2006-2020 by 1stplugins, s.r.o. All rights reserved.