Error message

  • Notice: Undefined index: 0 in user_node_load() (line 3501 of /home1/cgwarsco/public_html/houdini/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_node_load() (line 3501 of /home1/cgwarsco/public_html/houdini/modules/user/user.module).
  • Notice: Undefined index: 0 in user_node_load() (line 3502 of /home1/cgwarsco/public_html/houdini/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_node_load() (line 3502 of /home1/cgwarsco/public_html/houdini/modules/user/user.module).
  • Notice: Undefined index: 0 in user_node_load() (line 3503 of /home1/cgwarsco/public_html/houdini/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_node_load() (line 3503 of /home1/cgwarsco/public_html/houdini/modules/user/user.module).

DOME_LIGHT in progress

opcf obj
opadd -n geo DOME_LIGHT

opcf DOME_LIGHT
opadd -n sphere sphere_dome
opparm sphere_dome type (poly) rad (10 10 10)

opadd -n clip clip1
opwire -n sphere_dome -O clip1
opadd -n sort sort1
opparm sort1 ptsort ( seed )
opwire -n clip1 -O sort1
opadd -n group group1
opparm group1 entity ( point ) geotype ( all ) switcher2 ( 0 0 0 0 ) pattern ( 15 )
opwire -n sort1 group1
opset -d on -r on group1
opcf ..

opadd null null1
opcolor -c 1 0 0 null1
for i = 0 to 10
opadd light light$i
opparm light$i lookatpath ( /obj/null1 ) conelight ( on )

chadd -t 0 0 light$i tx
chkey -t 0 -v 1.5 -m 0 -a 1 -F 'point("/obj/DOME_LIGHT/clip1", "int(rand($i)*npoints("/obj/DOME_LIGHT/clip1"))", "P", 0)' light$i/tx
chkey -t 0 -v 1.5 -m 0 -a 1 light$i/tx
chadd -t 0 0 light$i ty
chkey -t 0 -v 1.5 -m 0 -a 1 -F 'point("/obj/DOME_LIGHT/clip1", "int(rand($i)*npoints("/obj/DOME_LIGHT/clip1"))" "P", 1)' light$i/ty
chkey -t 0 -v 1.5 -m 0 -a 1 light$i/ty
chadd -t 0 0 light$i tz
chkey -t 0 -v 1.5 -m 0 -a 1 -F 'point("/obj/DOME_LIGHT/clip1", `int(rand($i)*npoints("/obj/DOME_LIGHT/clip1"))", "P", 2)' light$i/tz
chkey -t 0 -v 1.5 -m 0 -a 1 light$i/tz
end

opcf ..

코드에 문제가 있음. 행여나 테스트 해 보실분은 .cmd파일 만드셔서, 로딩하시던지, 라인하나씩 입력해 보세요.

opcf /obj

opadd -n geo DOME_LIGHT

opcf DOME_LIGHT
opadd -n sphere sphere_dome
opparm sphere_dome type (poly) rad (25 25 25)

opadd -n clip clip1
opwire -n sphere_dome -O clip1
opadd -n sort sort1
opparm sort1 ptsort ( seed )
opwire -n clip1 -O sort1
opadd -n group group1
opparm group1 entity ( point ) geotype ( all ) switcher2 ( 0 0 0 0 ) pattern ( 15 )
opwire -n sort1 group1
opset -d on -r on group1
opcf ..

opadd null null1
opcolor -c 1 0 0 null1
for i = 0 to 15
opadd light light$i
opparm light$i lookatpath ( /obj/null1 ) conelight ( on )

#set rand_point = `int(rand($i)*npoints("/obj/DOME_LIGHT/clip1"))`
#echo "rand point $rand_point"

chadd -t 0 0 light$i tx
chkey -t 0 -v 1.5 -m 0 -a 1 -F 'point("/obj/DOME_LIGHT/clip1",'`int(rand($i)*npoints("/obj/DOME_LIGHT/clip1"))`', "P", 0)' light$i/tx
chkey -t 0 -v 1.5 -m 0 -a 1 light$i/tx
chadd -t 0 0 light$i ty
chkey -t 0 -v 1.5 -m 0 -a 1 -F 'point("/obj/DOME_LIGHT/clip1",'` int(rand($i)*npoints("/obj/DOME_LIGHT/clip1"))`', "P", 1)' light$i/ty
chkey -t 0 -v 1.5 -m 0 -a 1 light$i/ty
chadd -t 0 0 light$i tz
chkey -t 0 -v 1.5 -m 0 -a 1 -F 'point("/obj/DOME_LIGHT/clip1",'` int(rand($i)*npoints("/obj/DOME_LIGHT/clip1"))`', "P", 2)' light$i/tz
chkey -t 0 -v 1.5 -m 0 -a 1 light$i/tz
end

opcf ..

일단 여기서 C-Shell로 연동할 것인지 아니면, TCL로 연동할 건지는 유저들의 요구에 맞게 수정하면 될 것 같음. 물로 처음부터 OTL로 가도 좋은 아이디어라고 생각되어 집니다. 유닉스 환경에서의 후디니는 정말 모든게 좀더 오픈되어지는 느낌입니다. 유닉스를 더 잘하면, 후디니도 더 쉬워진다는게 제 생각입니다. 일단 후디니 잘하는 유저들 보니 유닉스도 잘 하더군요. 자 그럼 다음 프로세스는 여러가지 추가적인 파라미터를 헨들링해 보겠습니다. 먼저 C-Shell을 통해 Dome_Light를 생성하고 제어해 보겠습니다. Usage는 다음과 같겠죠?

/> source domelight.cmd -> CMD파일
or
/home/sidefx/chmod 755 domelight
/home/sidefx/ ./domelight -> C-Shell
Usage: domelight