GetCustomVector in script operator - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: Bugs and Issues (https://forum.tyflow.com/forum-3.html) +--- Thread: GetCustomVector in script operator (/thread-2442.html) |
GetCustomVector in script operator - henning - 06-11-2021 So here's my setup: I have two tyflows. The first places some particles and sets a customvector ("map_pos") with the particles position values. The second flow uses a birth flow to copy the first flow's particles, including the custom vector channels. This is working so far. Now I want to modify the second particles position using a script operator. I need the "map_pos" values inside this operator, but trying to read them using Code: Point3 map_pos = GetCustomVector(sInx, "map_pos"); Quote:Error: CS0103 which translates to "The name 'GetCustomVectorByID' does not exist in the current context". What could I be missing at this point? RE: GetCustomVector in script operator - tyFlow - 06-11-2021 All particle-access functions are members of the 'tf' class. So Code: Point3 map_pos = GetCustomVector(sInx, "map_pos"); Needs to be: Code: Point3 map_pos = tf.GetCustomVector(sInx, "map_pos"); RE: GetCustomVector in script operator - henning - 06-11-2021 thank you! I should have looked at the API doc more carefully... |