You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
@AufderWelt Yeah, sorry, what I posted was the inverse scale of localScale, as that's just what I happen to use more frequently. If you want to directly calculate localScale I believe the following ought to do it:
Describe the bug
the call
generates an error, if the object does not contain lua code. the call works, if the obj contains some lua code, for example "--"
To Reproduce
opend a new singleplayer table. put this code in the Global
Expected behavior
the
obj.getComponent("Transform").get("localScale")
should work, without the object containing lua codeTabletop Simulator Info:
Known workarounds
if lua code are injected into the object, the call works
Additional context
the call
lua obj.getComponents()[1].get("localScale")
does not work. it does not matter, if the object contains lua code or notLink to TTS post
https://forums.tabletopsimulator.com/showthread.php?8928-obj-getComponent(-quot-Transform-quot-)-get(-quot-localScale-quot-)-access-error&p=28926#post28926
The text was updated successfully, but these errors were encountered: