i am putting some copy stamp of some books in a “Line” but some of the atributes is the thickness of the book, and since it copy them into the Points of the line and this are continues with the same space point to point, is there a way that i can tell houdini to put one book next to the last point of the previus one? so i can put one next to the other and go on, and prolly set a diference of space into a slider so i can control it.
this might have to do with $XMAX function on a pivot position? maybe?
other thing i did a blendshape of how round the side cover of the book is, but what if i just want the expresion to be 0 or 1? i know the old and time consuming of changing the blendshape node into a swith so it only goes between the numbers that i set but is there a expresion to just choose the values that i want?.
thanks for the patience with all my questions i know that i have a lot .
how to copy stamp one object next the other copy?
5786 4 0- pelos
- Member
- 614 posts
- Joined: Aug. 2008
- Offline
- Soothsayer
- Member
- 854 posts
- Joined: Oct. 2008
- Offline
- tamte
- Member
- 8449 posts
- Joined: July 2007
- Offline
1) since you are stamping onto points of the line, you need to distribute points on that line to be properly spaced before connecting them to copy sop
you can do this randomly by using point jitter sop and then you can calculate distance of each point to the nearest right point (custom VOP SOP) and use that attribute to drive book width
2) or you can just copy them in one direction like in the attached file
For your blendshape problem, there is round() expression function which will round any number to the nearest integer, so any value between 0-1 will be exactly 0 or 1
you can do this randomly by using point jitter sop and then you can calculate distance of each point to the nearest right point (custom VOP SOP) and use that attribute to drive book width
2) or you can just copy them in one direction like in the attached file
For your blendshape problem, there is round() expression function which will round any number to the nearest integer, so any value between 0-1 will be exactly 0 or 1
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- pelos
- Member
- 614 posts
- Joined: Aug. 2008
- Offline
this is what i am doing,
i am just putting books in a row, but i want to know how i can put one next to the other.
dont know how to tell houdini to start the beggining of a book where the other ends. i put the scene so you can see .
oh i see insted using another geometry for the copy just use the regular settings, what does the $CY function does?
and for the expression, how do you set that up, something like
round (0-1) so just move around 0 and 1, or round(0-1-2) in case you want to random use 0 1 and 2? and reading the manual some function have = and then a number at the end, what is that for?
http://localhost:48626/expressions/round [localhost]
thanks. i am not sure how some expression works on houdini i am use to the ones in messiah studio.
i am just putting books in a row, but i want to know how i can put one next to the other.
dont know how to tell houdini to start the beggining of a book where the other ends. i put the scene so you can see .
oh i see insted using another geometry for the copy just use the regular settings, what does the $CY function does?
and for the expression, how do you set that up, something like
round (0-1) so just move around 0 and 1, or round(0-1-2) in case you want to random use 0 1 and 2? and reading the manual some function have = and then a number at the end, what is that for?
http://localhost:48626/expressions/round [localhost]
thanks. i am not sure how some expression works on houdini i am use to the ones in messiah studio.
- tamte
- Member
- 8449 posts
- Joined: July 2007
- Offline
if you do not like the method in my previous file, which is doing what you want, you can try the other (little complicated) one i described above, look at the attached file
$CY is just copy number if you are using Number Of Copies slider on Copy SOP
round(-2.501)=-3 in help just means, that expression round(-2.501) will give you the number -3 when evaluated (which is the nearest integer as the description of that function in help tells you)
so if rand($PT) will give you number between 0 and 1 like 0.334 then round(rand($PT)) will be the same as round(0.334) and it will be nearest integer which is in this case 0
in case you want random 0,1,2 use round( 2*rand($PT) )
$CY is just copy number if you are using Number Of Copies slider on Copy SOP
round(-2.501)=-3 in help just means, that expression round(-2.501) will give you the number -3 when evaluated (which is the nearest integer as the description of that function in help tells you)
so if rand($PT) will give you number between 0 and 1 like 0.334 then round(rand($PT)) will be the same as round(0.334) and it will be nearest integer which is in this case 0
in case you want random 0,1,2 use round( 2*rand($PT) )
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links