Jump to content

Dynamic strings


wyy

Recommended Posts

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

 

Link to comment
Share on other sites

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 by wyy
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...