very nice!
i will analyze this in a few minutes as soon as i got a decent cup of coffee
greetz,
Manu
Selecting closest object over a loop
19666 23 2- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
it seems i expressed myself a little wrong,
with the weird rotation i ment the alignment of my colorpicker mesh, it always rotated wrong when copied onto the template (have a look at my new scene, now it's working correctly)
but how exactly do i know what “transform order” to pick in the transform SOP? in your case you chose “trans_rot_scale” ?! (in the help file this isn't explained at all)
i tried to use the point() expression to get the right numbers of the text
font_object1/Point_Number
displayed, but i had no luck, obviously my expression is wrong again although i did also a new nearpoint() expression within it.
Ah and it's really good to know that the facet SOP is also able to handle normals!
btw nice showreel you got there Tomas!
with the weird rotation i ment the alignment of my colorpicker mesh, it always rotated wrong when copied onto the template (have a look at my new scene, now it's working correctly)
but how exactly do i know what “transform order” to pick in the transform SOP? in your case you chose “trans_rot_scale” ?! (in the help file this isn't explained at all)
i tried to use the point() expression to get the right numbers of the text
font_object1/Point_Number
displayed, but i had no luck, obviously my expression is wrong again although i did also a new nearpoint() expression within it.
Ah and it's really good to know that the facet SOP is also able to handle normals!
btw nice showreel you got there Tomas!
- tamte
- Member
- 8845 posts
- Joined: July 2007
- Offline
i see you have stayed with the old version,
just compare the expressions in point1 SOP mainly in nearest_ID parameter and reread my previous post where i explained the problem(maybe not clearly enough)
it is not the expression on font_object1/Point_Number that is wrong, it is that the expression on nearest_ID param of the point1 SOP is using local variables (namely $TX2, $TY2, $TZ2)
to the transform order: i just wanted it to transform first, so that the tip is on 0,0,0 and then rotate so i changed the transform order to TRS
if it was SRT it was first rotated then transfered in Y so it was floating over the ground
the object's Z axis is always aligned with the normal of template point so that is the primary reason for rotating it
i have modified my previous scene to get back rotation of the color picker, but still keeping the node count to minimum instead of this old method
i am sorry i changed your font in font sop, but i do not have your font
just compare the expressions in point1 SOP mainly in nearest_ID parameter and reread my previous post where i explained the problem(maybe not clearly enough)
it is not the expression on font_object1/Point_Number that is wrong, it is that the expression on nearest_ID param of the point1 SOP is using local variables (namely $TX2, $TY2, $TZ2)
to the transform order: i just wanted it to transform first, so that the tip is on 0,0,0 and then rotate so i changed the transform order to TRS
if it was SRT it was first rotated then transfered in Y so it was floating over the ground
the object's Z axis is always aligned with the normal of template point so that is the primary reason for rotating it
i have modified my previous scene to get back rotation of the color picker, but still keeping the node count to minimum instead of this old method
i am sorry i changed your font in font sop, but i do not have your font
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
hehe
that's no problem with the font
i already found the solution to the problem, the “nearest_id” paramter didn't update because it was calculated in the point1 SOP. Houdini didn't know which expression to resolve first, so i simply put the nearpoint() expression one node before the Point1 SOP, now everything is working perfectly!!!
here's what i came up with so far:
(i still will take a look on your latest hipfile ofcourse,
i really appreciate your help!!)
EDIT:
ok got it, you replaced the local variables $TX2, $TY2, $TZ2 with the point() expressions, I did almost the same thing in my latest file!
that's no problem with the font
i already found the solution to the problem, the “nearest_id” paramter didn't update because it was calculated in the point1 SOP. Houdini didn't know which expression to resolve first, so i simply put the nearpoint() expression one node before the Point1 SOP, now everything is working perfectly!!!
here's what i came up with so far:
(i still will take a look on your latest hipfile ofcourse,
i really appreciate your help!!)
EDIT:
ok got it, you replaced the local variables $TX2, $TY2, $TZ2 with the point() expressions, I did almost the same thing in my latest file!
-
- Quick Links