Image into attributes in SOP
4500 7 2-
- 5DN
- Member
- 152 posts
- Joined: 1月 2014
- オフライン
-
- Andy_23
- Member
- 918 posts
- Joined: 3月 2014
- オンライン
-
- 5DN
- Member
- 152 posts
- Joined: 1月 2014
- オフライン
-
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- オフライン
-
- Enivob
- Member
- 2658 posts
- Joined: 6月 2008
- オフライン
@circusmonkey: I am tying to accomplish something similar to what you have posted.
What I want for output is points on a grid only if the alpha from the image is not 0. How would I add points to a group or delete them from the grid while in VOPSOP context?
Basically knock out the alpha points only.
I modified your VOPSOP by changing the colormap to export RGBA. Then I compare the 4th value to greater than zero and route that to an attribute. One level up I have placed my new variable $MYAPLHACHAN into the Point SOP following the VOPSOP and I do get non-colored output where expected.
But how do I actually use $MYALPHACHAN to remove the points from the grid?
What I want for output is points on a grid only if the alpha from the image is not 0. How would I add points to a group or delete them from the grid while in VOPSOP context?
Basically knock out the alpha points only.
I modified your VOPSOP by changing the colormap to export RGBA. Then I compare the 4th value to greater than zero and route that to an attribute. One level up I have placed my new variable $MYAPLHACHAN into the Point SOP following the VOPSOP and I do get non-colored output where expected.
But how do I actually use $MYALPHACHAN to remove the points from the grid?
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
-
- PradeepBarua
- Member
- 443 posts
- Joined: 9月 2012
- オフライン
-
- PradeepBarua
- Member
- 443 posts
- Joined: 9月 2012
- オフライン
-
- Enivob
- Member
- 2658 posts
- Joined: 6月 2008
- オフライン
Thanks for the reply, the Delete after the VOPSOP does work but I am not sure why?
What exactly is the contents of the $MYALPHACHAN?
I assume it is some kind of array of data. Wouldn't I need a For/Each sop to iterate through the data with the Delete inside?
What exactly is the contents of the $MYALPHACHAN?
I assume it is some kind of array of data. Wouldn't I need a For/Each sop to iterate through the data with the Delete inside?
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
-
- Quick Links



