Get attributes from second input in wrangle node

   75   3   0
User Avatar
Member
7 posts
Joined: June 2017
Offline
How can I get attributes like “numpt” from input 2 in a wrangle?
Edited by DanielHoya - Feb. 14, 2018 15:55:30
User Avatar
Member
338 posts
Joined: Oct. 2011
Offline
If you want to get an attribute (lets say color) from a specific point number (lets say 123456) from input 2, you can use
@Cd = point(1, 'Cd', 123456);
If you have the same number of points on both inputs and you want to get an attribute from the corresponding point on input 2 you can use this shortcut
@Cd = v@opinput1_Cd;
Where the number 1 describes the input port.

-b
http://www.racecar.no [racecar.no]
User Avatar
Member
7 posts
Joined: June 2017
Offline
How can I get the “numpt” attribute from input2?

“i@opinput1_numpt” is not working for me.
Edited by DanielHoya - Feb. 14, 2018 15:56:48
User Avatar
Member
338 posts
Joined: Oct. 2011
Offline
Ah, you want the number of points on input 1?
@number_of_points_on_input_1 = npoints(1)
http://www.racecar.no [racecar.no]
  • Quick Links