plazadelmar Posted February 22, 2022 Share Posted February 22, 2022 (edited) I can't see my attribute when using the "detail" path to the ForEach node. How can I transfer the attribute to the Transform node? forEach.hiplc Edited February 22, 2022 by plazadelmar Quote Link to comment Share on other sites More sharing options...
Atom Posted February 22, 2022 Share Posted February 22, 2022 (edited) You have two problems. One is that the attribute you are trying to reference does not exist in the detail context, it exists on the points context. The other problem is you are trying to fetch the value from input 0. Input 0 of the transform node would be box1, not the FOREACH_BEGIN. When using hScript functions to fetch data, you almost always have to provide the explicit path to the node where you are fetching the data. While you can use an expression to drive a transform, there is no need, that is what f@pscale is used for. point("../foreach_begin1/",0,"myDist",0) Here is the scene implemented using f@pscale instead, with the transform disabled. They look the same. Edited February 22, 2022 by Atom 1 Quote Link to comment Share on other sites More sharing options...
plazadelmar Posted February 22, 2022 Author Share Posted February 22, 2022 11 minutes ago, Atom said: You have two problems. One is that the attribute you are trying to reference does not exist in the detail context, it exists on the points context. The other problem is you are trying to fetch the value from input 0. Input 0 of the transform node would be box1, not the FOREACH_BEGIN. When using hScript functions to fetch data, you almost always have to provide the explicit path to the node where you are fetching the data. While you can use an expression to drive a transform, there is no need, that is what f@pscale is used for. point("../foreach_begin1/",0,"myDist",0) Thank you, I can see now several ways to solve it. Pscale is probably the simplest and cleanest, to keep the detail attribute you could promote it from point to detail. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.