$PT error

   337   3   0
User Avatar
Member
48 posts
Joined: 2月 2013
Offline
I have this simple setup :






script :
point("/obj/geo1/connectivity1", $PT ,  "class", 0)

Why is the $PT generating the error?

also when using path like "/obj/geo1/connectivity1" , what is the fastest way to get his path from any node. Also
how do I refer to the current node, so I don't have to type long path?
Edited by metaclay2 - 2024年4月11日 05:59:41
User Avatar
Member
28 posts
Joined: 7月 2022
Offline
"use VEXpression"

```
offset = point(0,'class',@ptnum);
```
User Avatar
Member
48 posts
Joined: 2月 2013
Offline
juejuezi
offset = point(0,'class',@ptnum);

Thanks that VEX works. But what happen with my script ? what makes the error ?
User Avatar
Member
28 posts
Joined: 7月 2022
Offline
metaclay2
juejuezi
offset = point(0,'class',@ptnum);

Thanks that VEX works. But what happen with my script ? what makes the error ?

$PT does not exist here, each point will execute the exact same code
  • Quick Links