Jump to content
kubabuk

Acces the string attribute

Recommended Posts

Hi all,

I can't overcome this problem. How do I access string attribute stored in a point?

Help says strings are added as index attributes, and indeed I am getting various integer values but how can get a string itself?

Thanks.

kuba

Share this post


Link to post
Share on other sites
Hi all,

I can't overcome this problem. How do I access string attribute stored in a point?

Help says strings are added as index attributes, and indeed I am getting various integer values but how can get a string itself?

Thanks.

kuba

Use the points() expression.

/ -> exhelp points
string points (string surface_node, float point_number, string attribute)
		EXAMPLES
		  | points("/obj/geo1/facet1", 3, "instance")
		  | 
		  Returns the string associated with the string attribute "instance"
		  for point 3 in the facet1 surface node in geo1.


		REPLACED BY
			- hou.Geometry
			- hou.Point

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×