Raider-Arts / painter-megascan-link

Substance Painter Megascan Link plugins
MIT License
67 stars 6 forks source link

Rename exported assets to a descriptive name #8

Open MackenzieShirk opened 3 years ago

MackenzieShirk commented 3 years ago

image

Currently this is an issue with Megascans, and I recall Quixel mentioning that they cant give the textures descriptive names due to how they index the file names. It would be extremely helpful to mitigate this when exporting to Painter by either using the name given in Bridge, or coming up with some other naming scheme. As it is, importing several textures will create extremely unreadable filenames in the Shelf.

image

faggionluca commented 3 years ago

Yeah i can look into this and see if i can come up with a better naming scheme or extract somehow the bridge display name for the textures

faggionluca commented 3 years ago

@MackenzieShirk i've tried to implement this in the plugin but the current JS API of Substance Painter uses the file path as the display name for imported assets so the only way to implement this kind of feature would be to duplicate the assets in the file system rename them using the configured naming scheme of Bridge and then import them into Painter, this method is far from ideal since it will require write and read access of the file system and thus causing not permitted errors