enzyme69
Dear all,

I am "SOuPer" curious about this powerful Point SOuP node that has very little documentation. I have plenty of questions regarding the potential and limitations. This node escaped my radar until today.

Anyways, for now, for what I am trying to do, I have 2 meshes plugged into Point SOuP. Mesh A and Mesh B. 

I wanted to get:
1. Value difference of each point (original mesh and deformed mesh) --> this value difference is hopefully can be piped into array to be used to drive Particle Instances or rgbPP or other things.
2. Normal value.

I tried expression like this:
$DIFF = $TY2 - $TY;

But not getting anything, maybe I did it wrong. Do I need to specifically tell Maya that I created new variable? 

Additional questions:
- How do we use "time" and "frame" in this context? I tried sin(time) for $TY, didn't seem to work. But noise($ID) works, sin ($ID) is also works like in Houdini.
- Displaying Arbitrary Value from Point into into Display Components
- Displaying Normal from Point into Display Components

Thank you again beforehand.

PS: I just found out today how this Point SOuP can work together with Array to Dynamic Array, it is amazing!
Reply 0 0
enzyme69
Regarding time, I tested this one, seems to work:

$time = `currentTime -query`;

But, do we need to do this? Is there Local Variables for Time?
Reply 0 0
enzyme69
Using sin($time) does not seem to be working, I think it is not implemented inside Point SOuP. Am I right?
Reply 0 0
noizfactory
Have you tried $F or $FRAME? I haven't used it yet but I vaguely remember this being implemented already.
Reply 0 0
pshipkov
Remove the startup line you have, then for position type this:

$X=$TX;

$Y=$TY2 - $TY;

$Z=$TZ;

for weight type this:

$W=$TY2 - $TY;

If you want to trigger evaluation of the point node with time change connect time1.outTime (or anything else that is time dependent) to point.currentTime.
There are two local variables for time $F (int) and $FF (float).

Reply 0 0
enzyme69
$F and $FF Local Variable! (Houdini basic expression!!)

That's exactly what I was looking for.
And that's connected to the current time slot above. Got it~ This is super cool.

Ok, I will also try the weight thing. Hope this leads to something more interesting.

Thanks @noizfactory and @Peter! Will blog this.
Reply 0 0
enzyme69
Something interesting. If I am trying to do something like this:

$freq= `getAttr myWave_CTRL.frequency`;

$amp= `getAttr myWave_CTRL.amplitude`;

$offset= `getAttr myWave_CTRL.offset`;


And using it inside function sin($freq), I am getting an error. sin($TX) works, sin($ID) works, sin($FF) also works. But not custom attribute value.


Is this limitation or is there a way around it?

Reply 0 0
pshipkov
you have to define the types of your variables.
For example - int $freg, float $amp, etc

Reply 0 0
enzyme69
Ah, that is right. I totally forgot. Now it is working. Thanks Peter.

Common mistakes.
Reply 0 0
Reply