'Collapse To' works on a specific modifier, by nature it can't really work on multiple objects. If you're trying to collapse multiple objects to a specific class of modifier you will have to change your logic as modPanel.getCurrentObject() returns a specific modifier, thus it cannot also exist on another object. Instead…
modpanel.getCurrentObject() depends on what is displayed in the modifier panel. If you select multiple objects modpanel.getCurrentObject() will return undefined. If your modifier is instanced to all the objects selected, then modpanel.getCurrentObject() will return a modifier on the first loop iteration and then subsequent…
Hi S-S, what I wanted to achieve was not really a convert to poly/ mesh/ etc, but a collapse to a certain modifier on stack, similar to the right click > collapse to function, since it's not available by default to assign to a shortcut key (but collapse all function available by default on the shortcut key list), I have to…