Hi guys,
I'm new here, and to houdini. I have a particle sop that is producing sprites and these are textures from a shop VEX layered material. I want the pictures on the sprites to cycle, and to start at a different picture, but I can't seem to get it to work, i can do this in Maya no problem, just a new learning curve.
Also how do u concatinate strings in houdini?
Cheers guys
AnDy
Looping sprites
5362 4 2- westiemad
- Member
- 3 posts
- Joined: 7月 2005
- Offline
- Ondrej
- スタッフ
- 1081 posts
- Joined: 7月 2005
- Offline
You can override parameters for a shader with attribute values on the geometry. For example, the name of the base texture map is “map_base” (for the VEX layered surface SHOP), so all you have to do is create a string attribute with that name and set it to be whatever texture map you want to use. You'll want this attribute on the sprite primitives.
Note that if you're using the sprite procedural, you'll want to add the attribute to the points instead, and pass that attribute to the procedural which will handle the up-conversion of the attribute. You'll have to specify which attributes the sprite procedural should do this for explicitly (easily done with the dialog for the procedural or the -A option to the sprite procedural).
In Houdini, you can use the strcat(str1, str2) function to concatenate strings, though str1+str2 will also work.
Note that if you're using the sprite procedural, you'll want to add the attribute to the points instead, and pass that attribute to the procedural which will handle the up-conversion of the attribute. You'll have to specify which attributes the sprite procedural should do this for explicitly (easily done with the dialog for the procedural or the -A option to the sprite procedural).
In Houdini, you can use the strcat(str1, str2) function to concatenate strings, though str1+str2 will also work.
- westiemad
- Member
- 3 posts
- Joined: 7月 2005
- Offline
- talos72
- Member
- 112 posts
- Joined: 7月 2005
- Offline
- pelos
- Member
- 621 posts
- Joined: 8月 2008
- Offline
-
- Quick Links