How to get custom variables through detial?

   495   2   0
User Avatar
Member
60 posts
Joined: Feb. 2022
Offline
I created the seed variable so that it +1 every 10 frames.





Then convert to detail via vex.



Everything is normal up to this point, but when I reference the seed variable, an error occurs.



`details("../set_seed", "seed_detail")`
`detail("../set_seed", "seed_detail", 0)`

I tried two methods, but neither can be quoted. Why is this?
thank you very much for your help.
Edited by HenDaSheng - Oct. 27, 2023 06:12:12
User Avatar
Member
143 posts
Joined: May 2017
Offline
Hey, detail("../set_seed", "seed_detail", 0) without "`" work for me. The "grave accent" characters are only needed if, for example the input field is a string and you want to pass an expression.
Edited by viklc - Oct. 27, 2023 21:32:13
User Avatar
Member
60 posts
Joined: Feb. 2022
Offline
viklc
Hey, details() expression is for reading intrinsic values, detail("../set_seed", "seed_detail", 0) without "`" work for me. The "grave accent" characters are only needed if, for example the input field is a string and you want to pass an expression. In your case, both the retruned value of the expression as well as the input are integers.

I was too careless, just delete "``" and it will be fine. Thank you for your help!
  • Quick Links