Wiki(ウィキ)内検索結果
タグ検索でvexは11件見つかりました。
deformation with wire
**Deform with line *** Smoke sim Do smoke simulation at rest position. *** wire sim Use vellum/wire solver *** Deform volume Deform based on motion of two wires. ***Simple deform Use volume wrangle. Plug volume to 1st, rest wire to 2nd and animated wi…
https://nkvfx.memo.wiki/d/deformation%20with%20wir... - 2019年03月25日更新
initialize arrays
=|CC| string a[] = {"A", "B", "C"}; vector b[] = {{0,0,0},{1,0,0},{1,0,1}}; float c[] = array(0,1,2); s[]@a = array("aa", "bb"); v[]@b = array({1,1,1},{2,2,2}); f[]@c = array(1,2); // modify one of the array values. s[]@a[1] = "\$\F"; ||=…
https://nkvfx.memo.wiki/d/initialize%20arrays... - 2018年06月06日更新
read packed primitive
**Packed Primitive ***Create Packed Primitive in Python =|PY| node = hou.pwd() geo = node.geometry() geo.createPacked("PackedDisk") ||= ***Create Packed Primitive in Vex =|CC| int ptnum = addpoint(geoself(), {0,0,0}); int primnum = addprim(geoself(),…
https://nkvfx.memo.wiki/d/read%20packed%20primitiv... - 2018年05月30日更新
packed disk primitive
***Create Packed Primitive in Python =|PY| node = hou.pwd() geo = node.geometry() geo.createPacked("PackedDisk") ||= ***Create Packed Primitive in Vex =|CC| int ptnum = addpoint(geoself(), {0,0,0}); int primnum = addprim(geoself(), "PackedDisk", ptnum…
https://nkvfx.memo.wiki/d/packed%20disk%20primitiv... - 2018年04月10日更新
replace packed objects with high-res/different objects
**Instruction ***Calculate matrix to rotate initial position to current position *** Sim It would be easier if "Solve on creation frame" on packed oabject is on. *** extract and apply orient, pivot and position to high-res geometry **File [[03_p…
https://nkvfx.memo.wiki/d/replace%20packed%20objec... - 2018年03月20日更新
rotate 180 degrees along local z axis
=|CC| vector4 qua = quaternion(radians(180), {0,0,1}); @orient = qmultiply(@orient,qua); ||=…
https://nkvfx.memo.wiki/d/rotate%20180%20degrees%2... - 2018年01月19日更新
set up probability in wrangle
=|CC| float sum=0; for(int i = 0; i < ch("folder2"); i++) { sum += ch("probability" + itoa(i + 1)); } float rand = rand((@id + ch("seed")+0.21) + (ch("seed"))); rand = fit01(rand, 0, sum); sum = 0; for(int i = 0; i < ch("folder2"); i++) { …
https://nkvfx.memo.wiki/d/set%20up%20probability%2... - 2017年10月15日更新
average operations
**Instruction &ref(https://image02.seesaawiki.jp/n/o/nkvfx-memo/877099a08a40a9cf.jpg) ***Center point of a bounding box =|CC| vector min,max; getbbox(1, min, max); vector avg = avg(min, max); addpoint(geoself(), avg); ||= ***Center point of all poin…
https://nkvfx.memo.wiki/d/average%20operations... - 2017年10月08日更新
align in VEX
=|CC| vector4 orient = dihedral(vector a, vector b); ||=…
https://nkvfx.memo.wiki/d/align%20in%20VEX... - 2017年09月30日更新
create points at the center of each primitive
=|CC| float bound[] = primintrinsic(@OpInput1, "bounds", @primnum); vector min = set(bound[0], bound[2], bound[4]); vector max = set(bound[1], bound[3], bound[5]); addpoint(geoself(),avg(min,max)); removeprim(geoself(),@primnum,1); ||=…
https://nkvfx.memo.wiki/d/create%20points%20at%20t... - 2017年09月13日更新
clip in VEX
Run over "Detail" Attributes are not interporated in this code =|CC| string in0 = @OpInput1; int nprims = nprimitives(in0); int op; string operation = chs("keep"); if(operation == "above")op= 1; if(operation == "below")op= 2; else op= 0; vector cutDi…
https://nkvfx.memo.wiki/d/clip%20in%20VEX... - 2017年09月13日更新