Orsonorix Posted November 26, 2020 Share Posted November 26, 2020 Hello to all, I get alembic with point cloud, and age of particles is stored in detail attributes. I cant read correct attribute to corresponding point. I can read only first value. It's hard for me to explain this problem but it is obvious if you open attached scene file. Hope someone knows how to solve this. Thanks Pc_Particles.zip Quote Link to comment Share on other sites More sharing options...
nuki Posted November 28, 2020 Share Posted November 28, 2020 (edited) hey rafal, your detail attribute is an array of floats. when you bind it to a float attribute only the first value will be read. you can just replace the code in your wrangle with: float age[] = detail(0,"_age"); f@age = age[@ptnum]; note the square brackets which indicate we want to create an array of the specified type. a (valid) index of the array can be read with var[index]. in this case its @ptnum to fetch the corresponding value (assuming the array is ordered by point numbers). Edited November 28, 2020 by nuki Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.