How to read custom variable in node?
998 4 0- HenDaSheng
- Member
- 59 posts
- Joined: 2月 2022
- Offline
- graham
- Member
- 1902 posts
- Joined: 11月 2006
- Offline
Since you're creating the attribute in VEX you need to manually create a mapping between the parameter and a variable:
That being said, PolyExtrude won't accept a local variable in that parameter so even if your variable was correctly set up it would throw a warning. In your case you could do something like set the Distance to 1 and use your attribute as the Distance Scale in the Local Attributes tab.
addvariablename(0, "h", "MYVAR");
That being said, PolyExtrude won't accept a local variable in that parameter so even if your variable was correctly set up it would throw a warning. In your case you could do something like set the Distance to 1 and use your attribute as the Distance Scale in the Local Attributes tab.
Graham Thompson, Technical Artist @ Rockstar Games
- HenDaSheng
- Member
- 59 posts
- Joined: 2月 2022
- Offline
graham
Since you're creating the attribute in VEX you need to manually create a mapping between the parameter and a variable:addvariablename(0, "h", "MYVAR");
That being said, PolyExtrude won't accept a local variable in that parameter so even if your variable was correctly set up it would throw a warning. In your case you could do something like set the Distance to 1 and use your attribute as the Distance Scale in the Local Attributes tab.
Thank you for your help, but I don't understand the specific method, can you be more specific?
- BabaJ
- Member
- 2024 posts
- Joined: 9月 2015
- Offline
- HenDaSheng
- Member
- 59 posts
- Joined: 2月 2022
- Offline
-
- Quick Links