Change SRD's HUD Maker elements' position via plugins

Howdy. I have a question about SomeRanDev's HUD Maker that I thought it'd be easy to search a solution for, but seems that no one has asked that, so I'll do it myself.

I'm using SRD's HUD Maker in order to make an actor's parameters (HP, MP and TP meters and states). To put it briefly, the parameters stay below the actor's side view sprite, and said sprites' position change depending of how many members does your party have. So, the parameters' image gauges and values don't stay in an exact position, that's why I need a way to make the HUD elements' position be based on the same variables that change the side view sprites' position.

Is there a way to change the position of each HUD element using plugins? I know you can get each HUD element's ID and you could try doing stuff with it, but I haven't found a proper solution. Any ideas?
there are 2 ways you can do this.

1 => copy the element, change values (as copy/paste is always same position.

2 => make 1 element for it and make it correct, save and close hud maker.
than go to project file => data => huds for battle and open it.
(notepad++, VSCode Studio, or another code editor).

than copy past hud from actor 1 and paste it below.
change actor id, elements ID and other things with ID to change according
to your actor's need and requirement.

be VERY careful on modify the JSON file as one mistake can corrupt it.
if you know what you do, its quicker if you need elements in 1 place.
Oh, I didn't know the data folder is where the HUD info is stored! That's handy. However, the X and Y info forces me to put exact numbers, I can't put a variable that reads the side view sprite position and the actor ID. This is how a line of the BattleHUD.json looks:

[{"type":"Image Gauge","Cur. Value":"$gameParty.leader().hp","Max Value":"$gameParty.leader().mhp","Condition":"","Layer":"0","Scale X":"1","Scale Y":"1","Style":"left","Main Image":"CurvedRed","Back Image":"CurvedBack","animateInfo":{"x":{"spd":0,"loop":false,"min":0,"max":0},"y":{"spd":0,"loop":false,"min":0,"max":0},"s":{"spd":0,"loop":false,"min":1,"max":1},"r":{"spd":0,"loop":false,"min":0,"max":0}},"id":2,"x":206,"y":614,"Action":""}]

I'm not good at coding but I see how the data folder consists entirely of this straight line coding, different from the ones the plugins use. So, would it still be possible to use the plugins' variables in this? Or I should try creating the copy of the HUD element using a plugin? How can I copy the HUD elements?

Edit: I just realized the data folder and plugins folder use different coding file types. I guess I can't use variables then...
this part is the location (if you want them all equal)
Value":"$gameParty.leader().mhp","Condition":"","Layer":"0","Scale X":"1","Scale Y":"1",

the only thing here is value: "$gameParty.members()[1]" For next member in party.
for hp and mhp. (mp and mmp).
layer should increase by 1 (from last one used or higher).

so you don't have to change much.

plugins folder uses javascript.
data mostly use JSON files, so they are slightly different formatted.
The parameters I want to change are "x":206,"y":614,. I want them to take the variable that defines the side view sprites' position as their value, but it forces me to put an exact number. If it's not possible to define that value using a variable from plugins, then I'll stick with the copypaste option. How do I duplicate the HUD elements in a plugin? Can I place its X and Y values using here the same variable that defines the side view sprite position?

Original thread: https://forums.rpgmakerweb.com/threads/change-srds-hud-maker-elements-position-via-plugins.182034/