Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

gpeClearPresetGenerators

gpeClearPresetGenerators(
)
=> t / nil

Description

Deletes all the registered preset generator functions from the system.

Arguments

None

Value Returned

t

All the registered preset generator functions were deleted.

nil

The command was unsuccessful.

Example

The following procedure first defines a preset function. Custom checks are performed to determine when the preset function has to be displayed. Then the function is registered and tested. Here, the return value is t.

Then, all preset functions are deleted from the system and the function is tested for registry. Now the return value is nil.

procedure(test_preset(sbox @optional selection) print("Hello world"))
=> test_preset
gpeUnregisterPresetGen("test_preset")
=> t if registered; nil if not registered
gpeRegisterPresetGen("gen1" "test_preset" "")
=> t
gpeIsRegisteredPresetGen("test_preset")
=>t
gpeClearPresetGenerators() 
=> t
gpeIsRegisteredPresetGen("test_preset") 
=> nil

Return to top
 ⠀
X