Hello all,
I was following Kenny Lammer's bridge tutorial and halfway through he copies one of the attr-wrangle sop to be apply the manipulation (drooping) on different a group of points. I tried the same thing and for some reason, the second wrangle isn't taking the position of the points as it did initially.
Have attached a temporary scene and images explaining as to what I am expecting. I am not able to figure out where I am going wrong and why did it work for Kenny without him doing anything different from mine.
Thank you for any help this way.
-G
[New User] Point position not working as expected
1127 4 0- govindk
- Member
- 13 posts
- Joined: Jan. 2019
- Offline
- CYTE
- Member
- 685 posts
- Joined: Feb. 2017
- Offline
- govindk
- Member
- 13 posts
- Joined: Jan. 2019
- Offline
CYTE, thank you for the reply. Apologies, maybe I wasn't clear in my description, shouldn't the AWrangle sop take the position of the points from 1st input? I am not trying to manipulate the position of the same wire, the points of the blue wire are at bottom and the red is on the top (split using a blast node). What's confusing is why is the bottom point's position jumping back to top. I am sure it's some mistake I doing, but I am unable to figure out what.
Also, I did try @P.y += but that didn't change anything.
Thank you,
-G
Also, I did try @P.y += but that didn't change anything.
Thank you,
-G
- CYTE
- Member
- 685 posts
- Joined: Feb. 2017
- Offline
Hey govindk,
The thing is it doesn`t matter what P.y values go in the wrangle node if you overwrite them with this expression "P.y = whatever".
You are creating new Position values for the Y-Axis. Ok. So the red one appears to respect its old values but this is just a coincidence. The Y values were "P.y = 1" when they entered the wrangle. You created new values and the start and endpoints are again 1 because that's the range of the ramp you are using. For the blue, you get the same values but with incoming values of P.y = 0.
But these values don't matter because you overwrite them.
The solution I offered using "P.y += " would Offset the Red wire.
I could fix it for you, but I think it's better to understand what you are doing and figure it out by yourself.
Cheers
CYTE
The thing is it doesn`t matter what P.y values go in the wrangle node if you overwrite them with this expression "P.y = whatever".
You are creating new Position values for the Y-Axis. Ok. So the red one appears to respect its old values but this is just a coincidence. The Y values were "P.y = 1" when they entered the wrangle. You created new values and the start and endpoints are again 1 because that's the range of the ramp you are using. For the blue, you get the same values but with incoming values of P.y = 0.
But these values don't matter because you overwrite them.
The solution I offered using "P.y += " would Offset the Red wire.
I could fix it for you, but I think it's better to understand what you are doing and figure it out by yourself.
Cheers
CYTE
Edited by CYTE - July 27, 2021 10:26:43
- govindk
- Member
- 13 posts
- Joined: Jan. 2019
- Offline
CYTE
Hey govindk,
The thing is it doesn`t matter what P.y values go in the wrangle node if you overwrite them with this expression "P.y = whatever".
You are creating new Position values for the Y-Axis. Ok. So the red one appears to respect its old values but this is just a coincidence. The Y values were "P.y = 1" when they entered the wrangle. You created new values and the start and endpoints are again 1 because that's the range of the ramp you are using. For the blue, you get the same values but with incoming values of P.y = 0.
But these values don't matter because you overwrite them.
The solution I offered using "P.y += " would Offset the Red wire.
I could fix it for you, but I think it's better to understand what you are doing and figure it out by yourself.
Cheers
CYTE
Ahhh!! How naive of me, how did I miss that. I totally see your point now. And yes, it did fix it
However, I had to do @P.y -= to droop it. But I see the logic error in my thought process, I did not realize the ramp would remap the value of the point position.
Thank you so much CYTE, appreciate your time.
Edited by govindk - July 28, 2021 09:12:57
-
- Quick Links