$TX, TY, TZ : Point position.

$TW : See WEIGHT.

$CEX, CEY, CEZ : The centroid of the geometry.

$XMIN, XMAX : The X extents of the bounding box of the geometry.

$YMIN, YMAX : The Y extents of the bounding box of the geometry.

$ZMIN, ZMAX : The Z extents of the bounding box of the geometry

$SIZEX, SIZEY, SIZEZ : The size of the bounding box.

$BBX, BBY, BBZ : The point’s relative position in the bounding box.

$WEIGHT : Point spline weight.

$PT : The point number of the currently processed point.

$PR, NPR : Primitive number & total number of primitives.

$VTX, NVTX : Vertex number & total number of vertices.

$NPT : The total number of points in the template geometry.

$LIFE : Percent of total life used (from 0 to 1).

$NX, NY, NZ : Normal vector.

$MAPU, MAPV, MAPW : Point or vertex texture coordinates.

$VX, VY, VZ : Velocity direction.

$MAT : Material name specification.

$CR, CG, CB : Diffuse point or vertex color.

$CA : Point or vertex alpha value.

$COMX, COMY, COMZ : Center of mass.

$LOD : Level of detail.

$RESTX, RESTY, RESTZ : The rest position.

$DIST : Distance from particle to last collision.

$MASS : Point mass.

$DRAG : Point drag.

$TENSION : Spring tension of an edge.

$SPRINGK : Elasticity of a point.

$PSCALE : Particle Scale.

$AGE : The seconds a particle in the template has been alive.

$CREASE : Point or vertex crease weight value.

$AREA : The surface area of the primitive (created by the Measure SOP).

$PERIMETER : The perimeter of the primitive (created by the Measure SOP).

$ID : The ID of the particle in the input.

$UPX, UPY, UPZ : The vector pointed in the up direction.

$WIDTH : The width of the curve. Used by mantra for rendering curves & polywire for generating trees.

$SEGS : Number of segments to divide a curve up into in Polywire (created by L-systems).

$DIV : Number of divisions to build the circle swept with Polywire (created by L-systems).

$LAGE : The age of the point in the L-system computation.

$ARC : Arc length distance from root in the L-systems.

$GEN : Generation in the L-systems.

$CURLAYER : Stores the currently processed layer for texture/materials (set by the Layer SOP).

$MAXLAYER : The number of layers that are considered active for display.

'Houdini > Houdini etc' 카테고리의 다른 글

12.08.20 MON  (0) 2012.08.23
짝수 공식  (0) 2012.05.16
$F, $FF 의 차이점  (0) 2012.05.04
참고 수식  (0) 2012.05.03
connectivity, partition, transform, stamps(), chsop(), chs()  (0) 2012.05.02
Posted by scii

우분투 11버전에 후디니 설치 시 아이콘이 깨지는 문제가 발생.


http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=108866&highlight=#108866

해결방법 원본.



일단 터미널 열어서 

$ cd /opt/자기가 설치한 후디니 버전 디렉토리

$ source houdini_setup

$ echo $HOUDINI_BUILD_KERNEL

$ cd hsvg

$ ./hsvg $HH/help/nodes/images/fov.svg -o/tmp


libgio 오류가 나타나는지 확인. 만약 libgio오류가 나타난다면, 밑에 작업들 시도.

$ sudo mkdir oldlibs

$ sudo mv lib* oldlibs (lib로 시작하는 모든 파일 oldlibs 디렉토리로 옮기는 작업)


다시 한번 hsvg명령 실행.

$ ./hsvg $HH/help/nodes/images/fov.svg -o/tmp


hsvg명령 실행 후 오류 또는 경고가 전혀 나지 않는다면 성공!

후디니를 다시 시작하기 전에 아이콘 캐쉬 제거.

$ cd ~

$ rm -r ~/houdini10.0/config/Icons

$ houdini -foreground

Posted by scii

후디니 설정을 안해주면 부팅할때마다 /opt/hfs버전/source ./houdini_setup/bash를 해서 등록을 해야 터미널에서 후디니를 치면 후디니를 실행할 수 있다.

하지만, 터미널을 실행할 때마다 자동적으로 후디니를 등록하게 하면 터미널에서 houdini만 쳐도 실행이 된다. 


자기 홈 폴더에서 ls -a를 치면 . bashrc가 보일 것이다.


$ vi .bashrc 후

대문자 G를 눌러 파일 맨 끝으로 이동 한다.  그 밑에 줄에 이것들을 입력하면, 터미널 실행과 동시에 후디니를 자동적으로 등록한다.


cd /opt/후디니버전(ex:hfs11.0.733)/

source ./houdini_setup_bash

cd &OLDPWD



Posted by scii






사방으로 흩어지게할 때 rand() 함수로만으론 무리가있다. 왜냐면, rand()함수는 0~1의 난수(pseodo-random) 값만 리턴하기 때문이다.

그래서 -1 ~ 1값을 얻을려면 sin 함수등.. 다른 함수를 써야 한다.

if() 문으로도 조건을 제시하여 -1을 곱할 수 있다.


'Houdini > SOP' 카테고리의 다른 글

point sop과 foreach sop  (0) 2012.05.03
RGB나누기  (0) 2012.05.02
peak 노드 활용  (0) 2012.05.01
fit()  (0) 2012.05.01
Box 애니  (0) 2012.04.30
Posted by scii

peak 노드 활용

Houdini/SOP 2012. 5. 1. 23:10 |



$임의변수 * $TY2 + (1-$임의변수) * $TY

'Houdini > SOP' 카테고리의 다른 글

RGB나누기  (0) 2012.05.02
sin과 if를 이용해 사방으로 흩어지게 연출  (0) 2012.05.01
fit()  (0) 2012.05.01
Box 애니  (0) 2012.04.30
foreach, connectivity, partition  (0) 2012.04.30
Posted by scii

여러가지

Houdini/Expressions 2012. 5. 1. 23:09 |

sin($PT * A + $F * B) * C + D


A = 주기(진동수 (frequency))

B = 속도

C = 진폭 (amplitude)

D = offset


---------------------------------------------------------------


Normal이 $TX, $TY, $TZ면 사방으로 쫙 뻗침. 


`padzero(2, $F)` == $F2


0-99:1,2 ^10-20


0~99 중에 2개중 1개를 선택, 10~20은 제외


---------------------------------------------------------------


stamp("노드의경로", "식별자(사용자변수)", 초기값)

stamp 익스프레션의 초기값 의미 : stamp익스프레션을 사용하지 않을 때 값에 자기가 설정한 초기값이 들어감.

(((C++ 의 디폴트 값 개념과 같음)))

centroid(surface_node, type) : ex)centroid("../xform1", D_X) : type = D_X, D_Y, D_Z

nprims(name) : ex)nprims("delete1") : delete1의 primitive 개수 반환.

$TX,TY,TZ : Translate X,Y,Z

$XMAN,XMIN... 

$CEX,CEY,CEZ : The Centroid of the input

$GCX,GCY,GCZ : The centroid of the input group.

'Houdini > Expressions' 카테고리의 다른 글

dopfield Expression  (0) 2013.01.08
ex  (0) 2012.08.14
ceil, floor, round, int, trunc, frac  (0) 2012.05.01
point Expression  (0) 2012.05.01
point sop에서의 cos, sin  (0) 2012.05.01
Posted by scii

ceil(올림)은 1.1이건 1.7이건 1이상을 증명해주는 소수가 붙으면 무조건 정수를 1씩 올림.

 

floor(내림)은 ceil과 반대이다. 무조건 뒤에 붙은 소수를 버린다.  음수의 경우 -5.5이면 -6이라는 결과값을 준다. 왜냐하면, 음수의 경우엔 -5.5에서 내려가면 더 낮은 수가 -6이기 때문이다.

 

round(반올림)는 반올림을 시켜 정수를 만든다. ex) round(5.5) = 6

 

int(정수)는 소수는 무조건 버려버린다. 양수, 음수에 상관없이 무조건 버려서 정수화 시킴.

 

trunc는 floor과 흡사해보이나 -10.2같은 음수값에서는 -10이라는 결과값을 리턴한다.

 

frac은 정수를 버려버리고 소수만 남기는 값을 리턴한다.

[출처] [houdini] int expression|작성자 문경진

'Houdini > Expressions' 카테고리의 다른 글

ex  (0) 2012.08.14
여러가지  (0) 2012.05.01
point Expression  (0) 2012.05.01
point sop에서의 cos, sin  (0) 2012.05.01
Expression 정리  (0) 2012.05.01
Posted by scii

Returns the value of a point attribute.

Usage

point(surface_nodepoint_numberattributeindex)


surface_node는 경로, point_number, 속성(속성의 이름, Cd=diffuse color, P=point, Pw=point W), 축 설정(x=0, y=1, z=2)








---------------------------------------------------------------------------------------------------------------------------




포인트 익스프레션을 이용하여 point1의 각각의 point들의 X좌표의 위치값을 가지고 원을 만든다.




포인트의 거리를 구하여 그 거리만큼의 반지름을 가진 원을 만든다.




포인트의 거리를 구하여 포인트 2개를 가진만큼의 반지름을 가진 원을 만든다.


'Houdini > Expressions' 카테고리의 다른 글

ex  (0) 2012.08.14
여러가지  (0) 2012.05.01
ceil, floor, round, int, trunc, frac  (0) 2012.05.01
point sop에서의 cos, sin  (0) 2012.05.01
Expression 정리  (0) 2012.05.01
Posted by scii