I have not tried JS code, because don't know how to do it. Can you please explain what is "name" in below line. And which pattern names list it will give ?
presetManager.getObjectValue(4).getList(objApp.stringIDToTypeID("name")).
So I can change that line and test it again.
Thank you.