How can i get paramters name included in an event?

i use this code to get event paramter, but i can not get paramter name.

each_event.getParameterPresets();
eventParamterArray.forEach(function(paramter_ins) {
        alert(paramter_ins.name)
});

it alert an empty str.
i also use dump(), but not found.

Connected to FMOD Studio on ::ffff:127.0.0.1:3663.
(ManagedObject:GameParameter):
id: "{e04fcfc5-bbd6-4403-93fc-cd4e2dd64d6d}",
entity: "GameParameter",
isValid: true,
relationships: (ManagedRelationshipMap:GameParameter),
properties: (ManagedPropertyMap:GameParameter),
isOfType: <function>,
isOfExactType: <function>,
uiModulationDrawerVisible: undefined,
uiTriggerBehaviorDrawerVisible: undefined,
parameterType: 0,
minimum: 0,
maximum: 100,
enumerationLabels: undefined,
isGlobal: false,
isReadOnly: false,
isHeld: false,
initialValue: 100,
velocity: 0,
seekSpeed: 0,
seekSpeedDescending: 0,
seekSpeedAsymmetric: false,
cursorPosition: 0,
isExposedRecursively: true,
automators: [],
modulators: [],
snapshotProperties: [],
customBindings: null,
automationCurves: [(ManagedObject:AutomationCurve)],
commandSounds: [],
selector: null,
profilerGraphs: [],
presetOwner: (ManagedObject:ParameterPreset),
proxies: [(ManagedObject:ParameterProxy)],
parameterConditions: [],
sandboxParameters: [],
getCursorPosition: <function>,
setCursorPosition: <function>,
addAutomator: <function>,
addModulator: <function>,
dump: <function>,
document: <function>,

i want to get this paramter name “Player_Helath”
i am goal to export a csv file which contains more info.

Also:
Is it possiable to get [note] included in an event from script?

Thanks a lot!

Any helps!!!

你好我看你的昵称是中文,我也一直在使用script,可以的话可以家个qq或者微信交流下。

Hi,

If you retrieve a parameter preset with, for example, var paramPreset = event.getParameterPresets()[0], you can access the parameter’s name by using paramPreset.presetOwner.name. Retrieving an event’s note is just a matter of accessing event.note.

1 Like