Most used expressions

   6770   9   3
User Avatar
Member
80 posts
Joined: Aug. 2013
Offline
Hi,

What is the most used expressions in Houdini? The expressions that you find yourself using over and over again?

Stig
User Avatar
Member
181 posts
Joined: Feb. 2013
Offline
While I can't say I use all of these, here are some common expressions that may be of interest:

https://sites.google.com/site/fujitarium/Houdini/useful-expressions-houdini [sites.google.com]
http://www.andynicholas.com/?p=1344 [andynicholas.com]

Attribute examples:
@attribute>0
@attribute.x==0
@Cd.x>0.3
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
To many to mention

rand(@id+2322)
Gone fishing
User Avatar
Member
80 posts
Joined: Aug. 2013
Offline
I guess the last code randomize the point IDs. Why do you add 2322.
Why do you use @ intead of $?
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
stigolsen
I guess the last code randomize the point IDs. Why do you add 2322.
Why do you use @ intead of $?


This number is seed value in the random function , you can take different random result with adding some number in the rand function.


Also @ is same with $ , in the VEX programming language for example in the POP Wrangle DOP we should use @ instead of $ !

$ only useful in the other networks except VEX and also in the Old-Particle system. 8)

Sorry circusmonkey for my answer :roll:
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Ha ha , that's interesting question

I think stamp() function is one of the most important expressions in the Houdini , or at least in the Motion Graphics and Procedural Modelings 8)
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
606 posts
Joined: May 2007
Offline
Yeah, I could type rand(stamp(“../copy1”, “copynr”, 0)) in my sleep
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Stig be sure to create a note book and collect examples ! .

Rob
Gone fishing
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
These are the some functions which I use almost each and every day.

hscript:

rand()
stamp()
centroid()
point() / prim() / detail()
bbox()
length()
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
VEXpression:

rand() / random()
pcopen() / pcfilter() / pcimportbyidxi() / pcclose()
removepoint() / removeprim()
length()
addpoint() / addprim() / addvertex()
nearpoint()
  • Quick Links