Hello, I have started using houdini.
I am messing around with trying to animate with an expression.
I have a scene that has some base animation on it, and using a line with the points to select the even and odd points. Whenever there is an even point I want the animation to be offset by .5 of a second.
But it seems like what I have written isn't seeming to work.
I am using the copy stamp tool, I have set the copy stamp attribute to the Y rotation and applied the stamp variable to the rotation code.
This is the expression I have written for the scene.
rand(PT % 2 = 1, 0, 0)
The file is also attached.
If anyone could help and point out some massive mistakes I have made, I would be very thankful.
Using an expression to animate a scene.
2556 1 0-
- ACarrasco
- Member
- 1 posts
- Joined: March 2017
- Offline
-
- rizviali110
- Member
- 79 posts
- Joined: March 2012
- Offline
I am trying to understand exactly what you are trying to do, so in order to rotate all the points that are evenly distributed, you can create and attribute on your reference points lets say in point wrangle i@id =@ptnum%2;
then you can use this in your copy node
rot @id*(any number)
drop a transform node over your primitives and in Y rotation
stamp(“../copy1”, “rot”, 0)
it will offset all the evenly distributed points with an offset of
2*any number
4*any number
6*any number
and so on
if you want 0.5 of every second you can use @id*($T/0.5)
then you can use this in your copy node
rot @id*(any number)
drop a transform node over your primitives and in Y rotation
stamp(“../copy1”, “rot”, 0)
it will offset all the evenly distributed points with an offset of
2*any number
4*any number
6*any number
and so on
if you want 0.5 of every second you can use @id*($T/0.5)
FX - Artist / TD
-
- Quick Links

