Hi all,
I have recently started using Houdini from a predominantly Maya based background and am finding it hard to adjust to some of the expressions conventions.
How do I increment the size of a parameter on a trigger event, but if not return it's current size?
e.g
If( trigger, “currentSize + 1”, “currentSize”)
trigger ~= “F%10 == 0” or “chop(”ch/ch1/wave1/chan1“) == 1”
Everytime i try and reference the attribute itself within the parameter field i get recursion errors.
I would be very grateful to anyone who could offer me a solution to this
Expression issues
5003 6 2- Goku
- Member
- 3 posts
- Joined: July 2005
- Offline
- wolfwood
- Member
- 4256 posts
- Joined: July 2005
- Offline
Since the way Houdini's and Maya's expressions work kinda the same but you use them in very different ways. If that sounded confusing then we are a step in the right direction. :wink:
Can you explain what you are trying to do? (Not the expression you are trying to create, but what you need the expression to for…particle birthing? chop-fu?)
A lot of times you can use Houdini's default nodes where in Maya you would need expressions.
jim.
Can you explain what you are trying to do? (Not the expression you are trying to create, but what you need the expression to for…particle birthing? chop-fu?)
A lot of times you can use Houdini's default nodes where in Maya you would need expressions.
jim.
if(coffees<2,round(float),float)
- Antoine Durr
- Member
- 321 posts
- Joined: July 2005
- Offline
Goku
Hi all,
I have recently started using Houdini from a predominantly Maya based background and am finding it hard to adjust to some of the expressions conventions.
How do I increment the size of a parameter on a trigger event, but if not return it's current size?
e.g
If( trigger, “currentSize + 1”, “currentSize”)
trigger ~= “F%10 == 0” or “chop(”ch/ch1/wave1/chan1“) == 1”
Everytime i try and reference the attribute itself within the parameter field i get recursion errors.
I would be very grateful to anyone who could offer me a solution to this
The only place I know to do this is in the expression CHOP. In there, you can use ic() and more importantly, oc(), as long as you only request samples from before the current sample.
– Antoine
- edward
- Member
- 7694 posts
- Joined: July 2005
- Offline
- Goku
- Member
- 3 posts
- Joined: July 2005
- Offline
Basically i am trying to create realtime music visuals using Houdini. However i have to kind of learn how to use Houdini at the same time.
In its most simple form i want to grow a cube in size every 10th frame, however, i don't want to be constrained to the time
eg -> floor($F / 10)
or something similar, beacause as i progress in my project i will use the waveforms to generate the the growth.
Alternatively, A cube that rotates and every 10th frame changes direction (anit clockwise - clockwise). I have tried for a solution using chops so far, to no avail.
In its most simple form i want to grow a cube in size every 10th frame, however, i don't want to be constrained to the time
eg -> floor($F / 10)
or something similar, beacause as i progress in my project i will use the waveforms to generate the the growth.
Alternatively, A cube that rotates and every 10th frame changes direction (anit clockwise - clockwise). I have tried for a solution using chops so far, to no avail.
Andy
- edward
- Member
- 7694 posts
- Joined: July 2005
- Offline
- deecue
- Member
- 412 posts
- Joined: July 2005
- Offline
hey goku,
don't know if you could use these threads but a while back i was trying to activate an animation in a non-linear way with audio..i wanted it to be based off of activation through the waveform rather than based on the time line of a project itself… i did finally end up getting it to work but after i did, i dropped the method and went other routes because of my own fundamental issues i was having with sound visualization (rather techincal ones in houdini)..
http://odforce.net/forum/index.php?s=237fd2bbff75c15e2fd1ab14f42e1a0a&act=ST&f=15&t=1498&hl= [odforce.net]
http://www.sidefx.com/forum/viewtopic.php?t=1932&highlight= [sidefx.com]
btw, have you checked out Derivative? it's made by same creator as houdini and it's awesome…it would be a much better solution if you really need to be real-time.. if i had more time, i would be looking in to that hardcore for my own personal pleasure..
http://www.derivativeinc.com/home/home.asp [derivativeinc.com]
hth,
dave
don't know if you could use these threads but a while back i was trying to activate an animation in a non-linear way with audio..i wanted it to be based off of activation through the waveform rather than based on the time line of a project itself… i did finally end up getting it to work but after i did, i dropped the method and went other routes because of my own fundamental issues i was having with sound visualization (rather techincal ones in houdini)..
http://odforce.net/forum/index.php?s=237fd2bbff75c15e2fd1ab14f42e1a0a&act=ST&f=15&t=1498&hl= [odforce.net]
http://www.sidefx.com/forum/viewtopic.php?t=1932&highlight= [sidefx.com]
btw, have you checked out Derivative? it's made by same creator as houdini and it's awesome…it would be a much better solution if you really need to be real-time.. if i had more time, i would be looking in to that hardcore for my own personal pleasure..
http://www.derivativeinc.com/home/home.asp [derivativeinc.com]
hth,
dave
Dave Quirus
-
- Quick Links