• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Won't fix Atom's "uidWithoutSubscenePath" incorrect when some special characters in SubScene atom uid

everlaster

Well-known member
Featured Contributor
Joined
Aug 9, 2020
Messages
703
Solutions
15
Reactions
3,481
Hi, noticed this issue using my plugin Lumination which depends on the return value of uidWithoutSubscenePath being correct. But an incorrect value might cause issues elsewhere that the function is used as well.

In short if the subscene atom has some special characters (at least + and $ seem to be breaking), Atom.atomUidWithoutSubscenePath returns the whole uid. This is probably due to using Regex.Replace and the $ and + characters in the subscene uid are not escaped so the regex is not matched.
 
Last edited:
Yeah - I'll need to make sure I fix it so uids can't have special characters in 2.X or fix it so it does a regular string match. Unfortunately I won't be able to fix for 1.X.
 
Ok, I'll just work around it in the plugin.
 
Back
Top Bottom