Don Jack

jackdon4682

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Why is it Wrong typing "v@P += (0,@mask*3,0); "? April 30, 2024, 3:47 a.m.

alexwheezy
The first option will create the value of only the last element. You can check this if you write, for example,
v@P += (0,@mask*3,10);
You can see that the remaining elements have no effect on the expression.
To make it work as a vector you need to change the example a little.
v@P += set(0,@mask*3,10);
Oh, alexwheezy, thanks a lot!
It works when I use set(0,@mask*3,10);

And I've noticed that claiming a vector should use {} instead of ()
so it also work when I type:
v@P += {0,5,0};

But be carefully ,it occur an error if you reference a property @mask ,like this:
v@P += {0,@mask,0};

so in my case, the best way is to use v@P += set(0,@mask*3,10); like you say.

Why is it Wrong typing "v@P += (0,@mask*3,0); "? April 30, 2024, 2:57 a.m.

One simply Vex code.

It doesn't make sense When I type v@P += (0,@mask*3,0);

But it works to type v@P.y += @mask*3;

I want to know why? And how to write it correctly in the first way?

@pos1 to parameter doesn't work? April 25, 2024, 3:02 a.m.

And I'm thinking about solving more complex situation,(as a houdini beginner)
such as pushing small spheres to the surface that is just tangent to the big ball.

the node Peak works well,
and I've found a more simple way which uses Vop to solve it.


thanks a lot for you to help me understand the node and how to use point()