Finally, I have implemented the function of copy/paste accessories between slots! Unfortunate that the compatibility issue with Material Editor remains unresolved.
Here is the introduce video and plugin download in attachments. Also you can find the release and source code at github:
https://github.com/countd360/StudioCharaEditor/
Detail informations:
The main focus of this upgrade is undoubtedly the copy-paste and simultaneous editing functionality for accessories.
- Added "Copy slot" and "Paste slot" buttons to facilitate copying and pasting accessories between slots.
- Multiple accessory slots can be selected for simultaneous copying. Hold the Shift key to select a range of slots or hold the Ctrl key to select individual slots.
- When pasting, you can specify the target slot or automatically arrange empty slots. If there are insufficient slots, they will be automatically added (requires the MoreAccessories plugin).
- Mirror adjustment options are available when pasting, allowing you to mirror the parent object and adjust parameters. If the parent of an accessory cannot be mirrored, it will not be adjusted. The mirror adjustment will invert the X-axis position offset and the rotation around the Y and Z axes for each selected accessory. Note that the mirror adjustment algorithm differs from the one in the Maker of main game and may not always produce the desired results, requiring manual adjustments.
- An "INV" button has been added to the adjustment section of accessories. Clicking on it will reverse the numerical values (multiply by -1). This function is useful for assisting with mirror adjustments. Note that the "INV" button does not appear when multiple accessories are selected.
- Simultaneous editing of certain attributes is possible when multiple accessories are selected. Options such as color, visibility, and no shaking can be edited uniformly. Note that color changes are based on the color name, so when editing "Color 2," other selected accessories with "Color 2" will also change simultaneously. Accessories without the specific color option will not be affected.
- Tip: If you want to adjust the color of hair accessories, select all the accessories on the head. Hair accessories have different color names compared to regular accessories, so editing the color of hair accessories will not affect regular accessories. If you have not selected a hair accessory, hold Ctrl and select one to access the color adjustment options.
- Adjustment of position, rotation, and scaling for multiple accessories is done using incremental values. All selected accessories will undergo the same positional, rotational, and scaling changes. However, the displacement amount and axis direction may vary depending on the specific accessory, requiring individual adjustments.
- It is not possible to simultaneously edit the category, ID, and parent options of accessories. When multiple accessories are selected, only the properties of the last selected accessory will be modified (the slot of the last selected accessory is indicated in green).
Additionally, this version includes the functionality to export clothing cards. Simply select "Save as coordinate card" in the Save interface.
- Saving coordinate cards in the Studio requires tricking the HS2API into thinking that it is in the character maker interface. However, so some code that should have been executed may be missed, resulting in the loss of certain data. I suspect that the data loss issue with the Material Editor is related to this problem.
- The exported PNG image is still captured within the Studio itself, similar to how it is done when export characters. It does not automatically generate a coordinate model photo like in the main game's maker.
If you found any issue except MaterialEditor compatibility issue, please tell me.