Problem with using PolyFrame output in PointWrangle

   1451   3   0
User Avatar
Member
9 posts
Joined: July 2006
Offline
I'm experiencing different behavior of Point Wrangle and Point VOP when they should be doing the same thing. In particular, I create a curve and using PolyFrame I create its tangent vector. Then I want to move each point of the curve by its tangent vector, when I do this with Point VOP it works as expected but when using Point Wrangle I get some garbage.

I have attached an example scene and I'm using Houdini Apprentice 16.5.439

Attachments:
PolyFrameInWrangleProblem.hipnc (91.7 KB)

User Avatar
Member
1755 posts
Joined: March 2014
Offline
@P += v@tangentu;
User Avatar
Member
9 posts
Joined: July 2006
Offline
So I have to specify a type of variable when I want to use it? Wow, I have never seen that in any other programming language and I find it pretty stupid.

Anyway, thanks a lot!
User Avatar
Member
2036 posts
Joined: Sept. 2015
Offline
Not stupid at all. Just a misunderstanding of what your looking at.

Your not specifying a variable, your ensuring that you are accessing the desired attribute, which is not the same as a variable.

You also cannot compare a working environment - in this case data, such as attributes, between any number of nodes;
With a programming language.

Your not just dealing with the syntax of vex - but how that must be structured/used in the context of the hip file.
  • Quick Links