wyy Posted April 10, 2022 Share Posted April 10, 2022 How to make dynamic strings? For example I want to load multiple images as attributes saved in Cd1, Cd2, Cd3, Cd4. I tried adding iteration to string but it doesn't work. Quote Link to comment Share on other sites More sharing options...
Alain2131 Posted April 10, 2022 Share Posted April 10, 2022 Take a look at the documentation for detail(). detail(surface_node, attrib_name, attrib_index) You have "surface_node", but you are missing "attrib_name" and "attrib_index". Which makes sense to have, since how is it supposed to know which attribute to get from the node otherwise ? `detail("../foreach_count1/", "iteration", 0)` // When fetching int or float attributes, attrib_index needs to be 0 Quote Link to comment Share on other sites More sharing options...
wyy Posted April 10, 2022 Author Share Posted April 10, 2022 (edited) 1 hour ago, Alain2131 said: Take a look at the documentation for detail(). detail(surface_node, attrib_name, attrib_index) You have "surface_node", but you are missing "attrib_name" and "attrib_index". Which makes sense to have, since how is it supposed to know which attribute to get from the node otherwise ? `detail("../foreach_count1/", "iteration", 0)` // When fetching int or float attributes, attrib_index needs to be 0 Ah yes. I thought it doesn't work because the colors of the text are white.. But it works. Thanks! Edited April 10, 2022 by wyy 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.