Parameter Definitions question

Post topics about HALion scripting.
Post Reply
misohoza
Member
Posts: 834
Joined: Sun Oct 05, 2014 12:18 am
Contact:

Parameter Definitions question

Post by misohoza » Thu Jun 22, 2017 2:37 pm

This script should print the names of all parameters of a zone.

Code: Select all

zone=this.parent:getZone()
defs=zone.parameterDefinitions
for i,parameter in ipairs(defs) do
  print(parameter.name)
end
And it does.
But for parameters that are organised in "subfolders"(like Filter.Cutoff,Filter.Resonance,...), only the subfolder is being printed.
Is this by design?
par.PNG
(59.6 KiB) Not downloaded yet
Win 10 Home, 64 bit, 8 gb ram,
Cubase Pro 9, Wavelab Pro 9, Halion 6, Dorico,
NI Komplete 10 Ultimate, Ozone 7,
UR 44

AposMus
Junior Member
Posts: 180
Joined: Fri Nov 14, 2014 11:41 am
Contact:

Re: Parameter Definitions question

Post by AposMus » Tue Jul 04, 2017 2:32 pm

I've run into this, but got busy with something else and kind of forgot about it.

It looks more like a bug, because you can see the dots of the parameter categories that have sub definitions. It only returns a string, so an additional for loop isn't even an option.

Definition types are still returned correctly though. So i guess that means the correct data is going to the function, but not printed properly.
Cubase Pro 8.5.2
Halion 6
HSO
Padshop Pro
Dark Planet
Windows 7 64bit, AMD Phenom IIx6 1055t, 8GB Ram, Gigabyte GA-880G-UD3H F2, Nvidia GeForce GTS450
https://dewetvanderspuy.co.za/

misohoza
Member
Posts: 834
Joined: Sun Oct 05, 2014 12:18 am
Contact:

Re: Parameter Definitions question

Post by misohoza » Wed Jul 05, 2017 2:31 pm

Hi AposMus.

Thanks for your reply.
In the end I got around this by using id instead of name.
Win 10 Home, 64 bit, 8 gb ram,
Cubase Pro 9, Wavelab Pro 9, Halion 6, Dorico,
NI Komplete 10 Ultimate, Ozone 7,
UR 44

Post Reply

Return to “Halion Scripting”

Who is online

Users browsing this forum: No registered users and 1 guest