Hello,
I can't find an answer to this anywhere. I can't use $BBY, $YMAX, $ZMIN, etc. It gives me this error:
Unable to evaluate expression (
SyntaxError: ('invalid syntax', ('', 1, 1, ‘$YMAX’))
(/obj/grid1/transform2/ty)).
Thanks
$YMAX not working
5067 10 1-
- AustinDrozin
- Member
- 6 posts
- Joined: April 2017
- Offline
-
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
Can you attach a HIP file where this is happening?
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
-
- AustinDrozin
- Member
- 6 posts
- Joined: April 2017
- Offline
-
- AustinDrozin
- Member
- 6 posts
- Joined: April 2017
- Offline
-
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
I get a load warning when opening that HIP file, and it doesn't load in an expression for /obj/grid1/transform2/ty . What expression did you have there? It works if I put $YMAX there.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
-
- AustinDrozin
- Member
- 6 posts
- Joined: April 2017
- Offline
-
- anon_user_37409885
- Member
- 4189 posts
- Joined: June 2012
- Offline
-
- AustinDrozin
- Member
- 6 posts
- Joined: April 2017
- Offline
aRtey
$YMAX is HScript not Python. Set it in the top right of the parameter panel
Is it possible to switch in the middle of working? Because I tried that before but it didn't remove the error. Now I try $YMAX after setting both nodes to HScript before hand, and it works. I set it back to Python and it still works…
I have no idea how this is happening..
-
- dtempcyer
- Member
- 326 posts
- Joined: Jan. 2013
- Offline
-
- AustinDrozin
- Member
- 6 posts
- Joined: April 2017
- Offline
hou.alex.get
No, it does not work properly. In a python, you can not just write $YMAX and get the result of a local variable. For these purposes, there is a function called hou.lvar(“YMAX”) which will return any local variable for this node.
Using both versions with both HScript and Python gave me an error. Not every time though. If I start a new project and do it again it'll work sometimes. It's not consistent.
-
- anon_user_37409885
- Member
- 4189 posts
- Joined: June 2012
- Offline
-
- Quick Links


