Hello
I was trying to implement a system to have a fuse node acting dynamically based on the distance from the camera, to compute it I am using this expression
distance(ch(“../cam1/tx”), ch(“../cam1/ty”), ch(“../cam1/tz”), $TX, $TY, $TZ)
in the distance parameter input on the fuse node it doesn't accept it and is unable to evaluate it. The expression does work though according to the textview and trying it on other nodes (such as transform or polyextrude). I tried using another expression using originoffset, or creating a custom attribute, but still no luck (the fuse node doesn't recognize the custom variable I created). I can't seem to plug anything in the distance parameter which isn;t hard-coded numbers.
Anyone can enlight me?
Problem with expression input on Fuse Node
3184 8 0-
- MegaLeon
- Member
- 32 posts
- Joined: Nov. 2012
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
-
- MegaLeon
- Member
- 32 posts
- Joined: Nov. 2012
- Offline
-
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
-
- MegaLeon
- Member
- 32 posts
- Joined: Nov. 2012
- Offline
zdimaria
yeah, or you could use point(opinputpath(“.”, 0), $PT, “P”). havent tried it but i think it should work
That's the case, it doesn't seem to recognize the attribute I create anyway. Having no luck with opinputpath as well.
I attached the hip file with all the different methods I have tried if anyone feels kind enouth to have a look at it.
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
-
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
-
- MegaLeon
- Member
- 32 posts
- Joined: Nov. 2012
- Offline
-
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
because the frame is the same value for all the points. you cant vary the value across the points meaning every point has to have the exact same value for dist. if you really need this to work you can try using a point cloud in vops and just find the closest point to the current point (minus itself) and if its closer than your distance attribute, move it to the current position, if not, go to the next point. after this, use a fuse sop with dist set to a very small number(.00000001), so that it fuses all the ones that have been moved.
.
-
- Quick Links


