HouNC1033600baa04d87750209a7e596c.startfplayback -i on -r off -f 1 -e on -h on -t on -a on -k on -s 1 tcur 0 fps 24 tset 0 7.5 frange 1 180 unitlength 1 unitmass 1 prompt '`strcat(oppwf(), " -> ")`' HouNC1033600ba604d877502043eeb9a2.variablesset -g ACTIVETAKE = 'Main' set -g E = '2.7182818284590452354' set -g EYE = 'stereo' set -g HIP = '/home/tai/work/proj/houdini_practice/prt_mesh_breaking' set -g HIPNAME = 'prt_mesh_breaking_public.hipnc' set -g JOB = '/home/tai' set -g PI = '3.1415926535897932384' set -g POSE = '/home/tai/houdini11.0/poselib' set -g _HIP_SAVEPLATFORM = 'linux-x86_64-gcc4.4' set -g _HIP_SAVETIME = 'Tue Mar 22 00:55:46 2011' set -g _HIP_SAVEVERSION = '11.0.581' set -g status = '0' HouNC1033600ba404d8775020dba55724.aliasesalias cd 'opcf' alias cp 'opcp' alias h 'history' alias hython 'python' alias ls 'opls' alias matramp 'opramp' alias opcd 'opcf' alias oppwd 'oppwf' alias pwd 'oppwf' alias rm 'oprm' HouNC1033600ba104d87750204309e1eb.takeconfigtakename -g take HouNC1033600ba004d8775020e36d4a3d.hou.sessionHouNC1033600ba004d87750208029b1f6.OPlibrariesHouNC1033600ba204d87750206c0e60b2.OPpreferencesHouNC1033600ba004d877502075766bb8.OPfallbacksVop/neighbourcount /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/neighbourcount otls/OPlibVop.otl Vop/neighbour /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/neighbour otls/OPlibVop.otl Dop/null /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/null otls/OPlibDop.otl Vop/degtorad /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/degtorad otls/OPlibVop.otl Dop/groundplane /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/groundplane otls/OPlibDop.otl Vop/smooth /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/smooth otls/OPlibVop.otl Dop/rbdfracturedobject /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/rbdfracturedobject otls/OPlibDop.otl Vop/volumesample /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/volumesample otls/OPlibVop.otl Vop/pcopen /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/pcopen otls/OPlibVop.otl Sop/voronoifracture /opt/hfs11.0.581/houdini/otls/OPlibSop.otl Sop/voronoifracture otls/OPlibSop.otl Vop/clamp /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/clamp otls/OPlibVop.otl Vop/vectofloat /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/vectofloat otls/OPlibVop.otl Sop/color /opt/hfs11.0.581/houdini/otls/OPlibSop.otl Sop/color otls/OPlibSop.otl Vop/inttofloat /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/inttofloat otls/OPlibVop.otl Vop/twoway /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/twoway otls/OPlibVop.otl Vop/complement /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/complement otls/OPlibVop.otl Vop/negate /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/negate otls/OPlibVop.otl Vop/fit /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/fit otls/OPlibVop.otl Vop/addgroup /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/addgroup otls/OPlibVop.otl Vop/floattovec /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/floattovec otls/OPlibVop.otl Vop/pcimport /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/pcimport otls/OPlibVop.otl Vop/mulconst /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/mulconst otls/OPlibVop.otl Vop/turbnoise /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/turbnoise otls/OPlibVop.otl Vop/bias /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/bias otls/OPlibVop.otl Vop/random /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/random otls/OPlibVop.otl Vop/length /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/length otls/OPlibVop.otl Vop/cross /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/cross otls/OPlibVop.otl Vop/voronoise /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/voronoise otls/OPlibVop.otl Dop/linktosourceobject /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/linktosourceobject otls/OPlibDop.otl Vop/addattrib /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/addattrib otls/OPlibVop.otl Vop/importattrib /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/importattrib otls/OPlibVop.otl Dop/objpos /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/objpos otls/OPlibDop.otl Dop/rbdautofreeze /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/rbdautofreeze otls/OPlibDop.otl Sop/voronoifracturepoints /opt/hfs11.0.581/houdini/otls/OPlibSop.otl Sop/voronoifracturepoints otls/OPlibSop.otl Dop/rigidbodysolver /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/rigidbodysolver otls/OPlibDop.otl Vop/pciterate /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/pciterate otls/OPlibVop.otl Vop/dot /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/dot otls/OPlibVop.otl Vop/vecgetcompon /opt/hfs11.0.581/houdini/otls/OPlibVop.otl Vop/vecgetcompon otls/OPlibVop.otl Dop/voronoifracturesolver /opt/hfs11.0.581/houdini/otls/OPlibDop.otl Dop/voronoifracturesolver otls/OPlibDop.otl Sop/clean /opt/hfs11.0.581/houdini/otls/OPlibSop.otl Sop/clean otls/OPlibSop.otl HouNC1033600ba004d87750208cfb066b.OPdummydefsINDX) INDEX_SECTIONMuVop/neighbourcountiMs Vop/neighbourMsDop/nullwMs Vop/degtoradsMsDop/groundplane&] >Ms Vop/smooth1MsDop/rbdfracturedobject6( MsVop/volumesample^Ms Vop/pcopenbDMsSop/voronoifractureg2Ms Vop/clamp MsVop/vectofloat@Ms Sop/colorzMsVop/inttofloat@Ms Vop/twoway MsVop/complementLKMs Vop/negateɗMsVop/fit4pMs Vop/addgroupߤ3MsVop/floattovecMs Vop/pcimportMs Vop/mulconstMs Vop/turbnoise5MsVop/biasMs Vop/randomMs Vop/lengthFMs Vop/crossMs Vop/voronoise! VMsDop/linktosourceobject-Ms Vop/addattrib2mMsVop/importattrib;KMs Dop/objpos@lMsDop/rbdautofreezeHWMsSop/voronoifracturepointsNXMsDop/rigidbodysolver^<Ms Vop/pciterate|fMsVop/dot5 9MsVop/vecgetcomponn'MsDop/voronoifracturesolverMs Sop/cleanMs(neighbourcountNeighbour Count,oplib:/Vop/neighbourcount?Vop/neighbourcountVOP_neighbourcountVopvopVOPallsop popMu neighbour Neighbour"oplib:/Vop/neighbour?Vop/neighbour VOP_neighbourVopvopVOPallsop popMunullNulloplib:/Dop/null?Dop/nullDOP_nullDopMudegtoradDegrees To Radians oplib:/Vop/degtorad?Vop/degtorad VOP_degtoradVopvopVOPall*Mu groundplane Ground Plane&oplib:/Dop/groundplane?Dop/groundplaneDOP_groundplaneDopdoptype(object)MusmoothSmoothoplib:/Vop/smooth?Vop/smooth VOP_smoothVopvopVOPall*MurbdfracturedobjectRBD Fractured Object4oplib:/Dop/rbdfracturedobject?Dop/rbdfracturedobjectDOP_rbdfracturedobjectDopMu volumesample Volume Sample(oplib:/Vop/volumesample?Vop/volumesampleVOP_volumesampleVopvopVOPallsop popMupcopenPoint Cloud Openoplib:/Vop/pcopen?Vop/pcopen VOP_pcopenVopvopVOPallMuvoronoifractureVoronoi Fracture.oplib:/Sop/voronoifracture?Sop/voronoifracture SOP_subnetSopMuclampClampoplib:/Vop/clamp?Vop/clamp VOP_clampVopvopVOPall*Mu vectofloatVector To Float$oplib:/Vop/vectofloat?Vop/vectofloatVOP_vectofloatVopvopVOPall*MucolorColoroplib:/Sop/color?Sop/color SOP_colorSopMu inttofloatInteger To Float$oplib:/Vop/inttofloat?Vop/inttofloatVOP_inttofloatVopvopVOPallMutwowayTwo Way Switchoplib:/Vop/twoway?Vop/twoway VOP_twowayVopvopVOPall*Mu complement Complement$oplib:/Vop/complement?Vop/complementVOP_complementVopvopVOPall*MunegateNegateoplib:/Vop/negate?Vop/negate VOP_negateVopvopVOPall*Mufit Fit Rangeoplib:/Vop/fit?Vop/fitVOP_fitVopvopVOPall*MuaddgroupAdd Point To Group oplib:/Vop/addgroup?Vop/addgroup VOP_addgroupVopvopVOPallsop popMu floattovecFloat To Vector$oplib:/Vop/floattovec?Vop/floattovecVOP_floattovecVopvopVOPall*MupcimportPoint Cloud Import oplib:/Vop/pcimport?Vop/pcimport VOP_pcimportVopvopVOPallMumulconstMultiply Constant oplib:/Vop/mulconst?Vop/mulconst VOP_mulconstVopvopVOPall*Mu turbnoiseTurbulent Noise"oplib:/Vop/turbnoise?Vop/turbnoise VOP_turbnoiseVopvopVOPallMubiasBiasoplib:/Vop/bias?Vop/biasVOP_biasVopvopVOPallMurandomRandomoplib:/Vop/random?Vop/random VOP_randomVopvopVOPall*MulengthLengthoplib:/Vop/length?Vop/length VOP_lengthVopvopVOPall*Mucross Cross Productoplib:/Vop/cross?Vop/cross VOP_crossVopvopVOPall*Mu voronoise Voronoi Noise"oplib:/Vop/voronoise?Vop/voronoise VOP_voronoiseVopvopVOPall*MulinktosourceobjectLink To Source Object4oplib:/Dop/linktosourceobject?Dop/linktosourceobjectDOP_linktosourceobjectDopMu addattrib Add Attribute"oplib:/Vop/addattrib?Vop/addattrib VOP_addattribVopvopVOPallsop popMu importattribImport Attribute(oplib:/Vop/importattrib?Vop/importattribVOP_importattribVopvopVOPallsop popMuobjpos OBJ Positionoplib:/Dop/objpos?Dop/objpos DOP_objposDopMu rbdautofreezeRBD Auto Freeze*oplib:/Dop/rbdautofreeze?Dop/rbdautofreezeDOP_rbdautofreezeDopMuvoronoifracturepointsVoronoi Fracture Points:oplib:/Sop/voronoifracturepoints?Sop/voronoifracturepoints SOP_subnetSopguide=./IMPACT_METABALLS MurigidbodysolverRigid Body Solver.oplib:/Dop/rigidbodysolver?Dop/rigidbodysolver DOP_rbdsolverDopMu pciteratePoint Cloud Iterate"oplib:/Vop/pciterate?Vop/pciterate VOP_pciterateVopvopVOPallMudot Dot Productoplib:/Vop/dot?Vop/dotVOP_dotVopvopVOPall*Mu vecgetcomponGet Vector Component(oplib:/Vop/vecgetcompon?Vop/vecgetcomponVOP_vecgetcomponVopvopVOPall*MuvoronoifracturesolverVoronoi Fracture Solver:oplib:/Dop/voronoifracturesolver?Dop/voronoifracturesolver DOP_subnetDopMucleanCleanoplib:/Sop/clean?Sop/clean SOP_cleanSopsubnetSUBsopMuINDX DialogScript=Lt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "neighbourcount" script "neighbourcount" label "neighbourcount" code { "$count = getneighbourcount($ptnum, $input_index);" } input int input_index "OP Input Index" input int ptnum "Point Number" output int count "Number of Neighbours" parm { name input_index label "OP Input Index" type int size 1 default { 0 } range { 0 3 } } parm { name ptnum label "Point Number" type int size 1 default { 0 } } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "neighbour" script "neighbour" label "neighbour" code { "$neighptnum = getneighbour($ptnum, $neighnum, $input_index);" } input int input_index "OP Input Index" input int ptnum "Point Number" input int neighnum "Neighbour Number" output int neighptnum "Point Number of Given Neighbour" parm { name input_index label "OP Input Index" type int size 1 default { 0 } range { 0 3 } } parm { name ptnum label "Point Number" type int size 1 default { 0 } } parm { name neighnum label "Neighbour Number" type int size 1 default { 0 } } } INDXContents9Ms DialogScript9F HouNC1033600bba04d87731e08919230fNON_COMMERCIAL_FILE!!!# Dialog script for null automatically generated 09/05/07 11:45:15 { name null script null label Null help { "" } inputlabel 1 "Input 0" inputlabel 2 "Input 1" inputlabel 3 "Input 2" inputlabel 4 "Input 3" } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "degtorad" script "degtorad" label "degtorad" outercode { INCLUDE_VOPLIB } code { "$rad = vop_radians($deg);" } input float deg "Degrees" output float rad "Radians" signature "1D Float Values" default { } signature "3D Vector Values" v { vector vector } signature "3D Point Values" p { point point } signature "3D Normal Values" n { normal normal } signature "3D Color Values" c { color color } signature "4D Values" v4 { vector4 vector4 } signature "3D Uniform Float" uf { ufloat ufloat } signature "3D Uniform Vector" uv { uvector uvector } signature "3D Uniform Point" up { upoint upoint } signature "3D Uniform Normal" un { unormal unormal } signature "3D Uniform Color" uc { ucolor ucolor } group { name "gv" label "Defaults" VOP_FLT_PARM(deg, "1D Float Input", 1) VOP_VEC_PARM(deg_v, "3D Vector", 1, 1, 1) VOP_VEC_PARM(deg_p, "3D Point", 1, 1, 1) VOP_VEC_PARM(deg_n, "3D Normal", 1, 1, 1) VOP_CLR_PARM(deg_c, "3D Color", 1, 1, 1) VOP_VEC4_PARM(deg_v4,"4D Integer", 1, 1, 1, 1) } group { name "gu" label "Uniform Defaults" VOP_FLT_PARM(deg_uf, "1D Float", 1) VOP_VEC_PARM(deg_uv, "3D Vector", 1, 1, 1) VOP_VEC_PARM(deg_up, "3D Point", 1, 1, 1) VOP_VEC_PARM(deg_un, "3D Normal", 1, 1, 1) VOP_CLR_PARM(deg_uc, "3D Color", 1, 1, 1) } } INDXContents9Ms DialogScript9 Fh&XHouNC1033600bba04d87731e08919230fNON_COMMERCIAL_FILE!!!# Dialog script for groundplane automatically generated 06/07/07 11:38:00 { name groundplane script groundplane label "Ground Plane" help { "" } bindhandle rx xform "Transformer" rx "" bindhandle ry xform "Transformer" ry "" bindhandle rz xform "Transformer" rz "" bindhandle grid_size1 xform "Transformer" sx "" bindhandle grid_size2 xform "Transformer" sz "" bindhandle tx xform "Transformer" tx "" bindhandle ty xform "Transformer" ty "" bindhandle tz xform "Transformer" tz "" inputlabel 1 "Input 1" inputlabel 2 "Input 2" inputlabel 3 "Input 3" inputlabel 4 "Input 4" parm { name "objname" label "Object Name" type string default { "$OS" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "display" label "Display Proxy Geometry" type toggle default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "color" label "Color" type color size 3 default { "1" "1" "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "grid_size" label "Grid Size" type float size 2 default { "20" "20" } range { -1 1 } export none parmtag { "autoscope" "0000" } } group { name std_switcher_0 label "Initial State" parm { name "objpath" label "OBJ Path" type oppath default { "" } range { 0 1 } export none parmtag { "oprelative" "." } parmtag { "opfilter" "!!OBJ!!" } parmtag { "autoscope" "0000000000000000" } } parm { name "t" label "Position" type vector size 3 default { "0" "0" "0" } disablewhen "{ objpath != \"\" }" range { -1 1 } export none parmtag { "autoscope" "0000" } } parm { name "r" label "Rotation" type vector size 3 default { "0" "0" "0" } disablewhen "{ objpath != \"\" }" range { -1 1 } export none parmtag { "autoscope" "0000" } } } group { name std_switcher_0_1 label Physical parm { name "bounce" label "Bounce" type float default { "0.5" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "friction" label "Friction" type float default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "dynamicfriction" label "Dynamic Friction Scale" type float default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "temperature" label "Temperature" type float default { "0" } range { 0 100 } export none parmtag { "autoscope" "0000000000000000" } } } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "smooth" script "smooth" label "smooth" outercode { INCLUDE_VOPLIB } code { "$val = vop_smooth($min, $max, $amount, $rolloff);" } input float min "Range Bottom" input float max "Range Top" input float amount "Amount" input float rolloff "Rolloff" output float val "Number Between 0 And 1" signature "Float Values" default { } signature "Uniform Floats" uf { ufloat ufloat ufloat ufloat ufloat } VOP_FLT_PARM(min, "Range Bottom", 0) VOP_FLT_PARM(max, "Range Top", 1) VOP_FLT_PARM(amount, "Amount", 0.5) VOP_FLT_PARM(rolloff, "Rolloff", 1) VOP_FLT_PARM(min_uf, "Uniform Range Bottom", 0) VOP_FLT_PARM(max_uf, "Uniform Range Top", 1) VOP_FLT_PARM(amount_uf, "Uniform Amount", 0.5) VOP_FLT_PARM(rolloff_uf, "Uniform Rolloff", 1) } INDXContents9Ms DialogScript9'KHouNC1033600bba04d87731e08919230fNON_COMMERCIAL_FILE!!!# Dialog script for rbdfracturedobject automatically generated 12/04/09 21:02:04 { name rbdfracturedobject script fractured_object label "RBD Fractured Object" help { "" } bindhandle rx xform "Transformer" rx "" bindhandle ry xform "Transformer" ry "" bindhandle rz xform "Transformer" rz "" bindhandle tx xform "Transformer" tx "" bindhandle ty xform "Transformer" ty "" bindhandle tz xform "Transformer" tz "" bindhandle tx velocity "Velocity" tx "invisible(1)" bindhandle ty velocity "Velocity" ty "invisible(1)" bindhandle tz velocity "Velocity" tz "invisible(1)" bindhandle velx velocity "Velocity" vx "invisible(1)" bindhandle vely velocity "Velocity" vy "invisible(1)" bindhandle velz velocity "Velocity" vz "invisible(1)" inputlabel 1 "Input 1" inputlabel 2 "Input 2" inputlabel 3 "Input 3" inputlabel 4 "Input 4" parm { name "usesimframe" label "Creation Frame Specifies Simulation Frame" type toggle default { "0" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "createframe" label "Creation Frame" type float default { "1" } range { 1 100 } export none parmtag { "autoscope" "0000" } } parm { name "solvefirstframe" label "Solve on Creation Frame" type toggle default { "off" } range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "soppath" label "SOP Path" type oppath default { "" } range { 0 1 } export none parmtag { "oprelative" "." } parmtag { "opfilter" "!!SOP!!" } parmtag { "autoscope" "0000" } } parm { name "groupmask" label "Group Mask" type string default { "*" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "animategeo" label "Use Deforming Geometry" type toggle default { "0" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "usetransform" label "Use Object Transform" type toggle default { "0" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "active" label "Create Active Objects" type toggle default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "display" label "Display Geometry" type toggle default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } group { name "std_switcher_0" label "Initial State" parm { name "t" label "Position" type vector size 3 default { "0" "0" "0" } range { -1 1 } export none parmtag { "autoscope" "0000" } } parm { name "r" label "Rotation" type vector size 3 default { "0" "0" "0" } range { -1 1 } export none parmtag { "autoscope" "0000" } } parm { name "vel" label "Velocity" type vector size 3 default { "0" "0" "0" } disablewhen "{ inheritvelocity == 1 }" range { -1 1 } export none parmtag { "autoscope" "0000" } } parm { name "angvel" label "Angular Velocity" type vector size 3 default { "0" "0" "0" } disablewhen "{ inheritvelocity == 1 }" range { -1 1 } export none parmtag { "autoscope" "0000" } } parm { name "inheritvelocity" label "Inherit Velocity from Point Velocity" type toggle default { "0" } range { 0 1 } export none parmtag { "autoscope" "0000" } } } group { name "std_switcher_0_1" label "Glue" parm { name "glueobject" label "Glue to Object" type string default { "" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "gluethreshold" label "Glue Strength" type float default { "-1" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "glueimpulsehalflife" label "Glue Impulse HalfLife" type float default { "0.1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } } group { name "std_switcher_0_2" label "Collisions" parm { name "usevolume" label "Use Volume Based Collision Detection" type toggle default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } group { name "std_switcher_3" label "Volume" parm { name "mode" label "Mode" type ordinal default { "0" } disablewhen "{ usevolume == 0 }" menu { "rayintersect" "Ray Intersect" "metafield" "Meta Balls" "implicitbox" "Implicit Box" "implicitsphere" "Implicit Sphere" "implicitplane" "Implicit Plane" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "div" label "Divisions" type integer size 3 default { "30" "30" "30" } disablewhen "{ usevolume == 0 }" range { 2! 50 } export none parmtag { "autoscope" "0000" } } parm { name "laserscan" label "Laser Scan" type toggle default { "0" } disablewhen "{ usevolume == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "fixsigns" label "Fix Signs" type toggle default { "1" } disablewhen "{ usevolume == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "forcebounds" label "Force Bounds" type toggle default { "1" } disablewhen "{ usevolume == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "invert" label "Invert Sign" type toggle default { "0" } disablewhen "{ usevolume == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "sweepalpha" label "Sign Sweep Threshold" type float default { "2" } disablewhen "{ usevolume == 0 }" range { 0! 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "sweepcount" label "Max Sign Sweep Count" type integer default { "3" } disablewhen "{ usevolume == 0 }" range { 0! 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "offset" label "Offset Surface" type float default { "0" } range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "showguide" label "Show Collision Guide Geometry" type toggle default { "0" } disablewhen "{ usevolume == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "guidecolor" label "Collision Guide Color" type color size 3 default { "1" "0" "0" } disablewhen "{ showguide == 0 } { usevolume == 0 }" range { 0! 1! } export none parmtag { "autoscope" "0000" } } parm { name "volumefilemode" label "File Mode" type ordinal default { "3" } disablewhen "{ usevolume == 0 }" menu { "auto" "Automatic" "read" "Read Files" "write" "Write Files" "none" "No Operation" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "volumefile" label "File" type file default { "" } disablewhen "{ usevolume == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000" } } } group { name "std_switcher_3_1" label "Surface" parm { name "surfreptype" label "Surface Representation" type ordinal default { "0" } menu { "0" "Points" "1" "Edges" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "polyconvert" label "Convert To Poly" type toggle default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "triangulate" label "Triangulate" type toggle default { "0" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "polylod" label "LOD" type float size 2 default { "1" "1" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "addbarycenter" label "Add Barycenters" type toggle default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } } } group { name "std_switcher_0_3" label "Physical" parm { name "computecom" label "Compute Center of Mass" type toggle default { "on" } range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "p" label "Pivot" type vector size 3 default { "0" "0" "0" } range { -1 1 } export none parmtag { "units" "m1" } parmtag { "autoscope" "0000000000000000" } } parm { name "computemass" label "Compute Mass" type toggle default { "1" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "density" label "Density" type float default { "1000" } disablewhen "{ computemass == 0 }" range { 0! 10 } export none parmtag { "autoscope" "0000" } } parm { name "mass" label "Mass" type float default { "1" } disablewhen "{ computemass == 1 }" range { 0! 10 } export none parmtag { "autoscope" "0000" } } parm { name "inertialtensorstiffness" label "Rotational Stiffness" type float default { "1" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "bounce" label "Bounce" type float default { "0.5" } range { 0! 1 } export none parmtag { "autoscope" "0000" } } parm { name "friction" label "Friction" type float default { "1" } range { 0! 10 } export none parmtag { "autoscope" "0000" } } parm { name "dynamicfriction" label "Dynamic Friction Scale" type float default { "1" } range { 0! 1 } export none parmtag { "autoscope" "0000" } } parm { name "temperature" label "Temperature" type float default { "0" } range { 0 100 } export none parmtag { "autoscope" "0000000000000000" } } } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "volumesample" script "volumesample" label "volumesample" code { "$volumevalue = volumesample($input_index, $primnum, $samplepos);" } input int input_index "OP Input Index" input int primnum "Primitive Number" input vector samplepos "Sample Position" output float volumevalue "Value of Volume at Given Position" parm { name input_index label "OP Input Index" type int size 1 default { 0 } range { 0 3 } } parm { name primnum label "Primitive Number" type int size 1 default { 0 } } parm { name samplepos label "Sample Position" type float size 3 default { 0 0 0 } } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "pcopen" script "pcopen" label "pcopen" outercode { "#include " } code { "VOPpoint $pcP = $isconnected_P != 0 ? $P : P;" "if ($nchannel != \"\") {" " $handle = pcopen($file, $pchannel, $pcP, $nchannel, $N, $radius, $maxpoints, \"ndot\", cos(radians($cone)), \"preload\", $preload);" "} else {" " $handle = pcopen($file, $pchannel, $pcP, $radius, $maxpoints, \"preload\", $preload);" "}" } output int handle "Texture Handle" VOP_FILE_INPUT(file, "Point Cloud Texture", "defgeo.bgeo") VOP_STR_INPUT(pchannel, "Position Channel", "P") VOP_VEC_INPUT(P, "Query Position", 0, 0, 0) VOP_STR_INPUT(nchannel, "Normal Channel", "") VOP_VEC_INPUT(N, "Query Normal", 0, 0, 0) VOP_FLT_INPUT(radius, "Search radius", 0.1) VOP_INT_INPUT(maxpoints, "Number of points", 10) VOP_FLT_INPUT(cone, "Cone Angle", 90) VOP_TOGGLE_INPUT(preload, "Preload Map", 1) } INDXContents9Ms DialogScript92CL 0 } { cluster == 0 }" range { 0 1 } export none } } group { name "settings_1" label "Cluster" parm { name "cluster" label "Cluster Pieces" type toggle default { "0" } disablewhen "{ cutplaneoffset > 0 }" range { 0 1 } export none } parm { name "deleteedges" label "Delete Exterior Cluster Edges" type toggle default { "0" } range { 0! 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "addclusternoise" label "Add Cluster Noise" type toggle default { "1" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 }" range { 0! 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "clustersize" label "Size" type vector size 3 default { "0.5" "0.5" "0.5" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 } { addclusternoise == 0 }" range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "clusteroffset" label "Offset" type vector size 3 default { "0" "0" "0" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 } { addclusternoise == 0 }" range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "clusterjitter" label "Jitter" type vector size 3 default { "1" "1" "1" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 } { addclusternoise == 0 }" range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "randomdetach" label "Random Detachment" type toggle default { "0" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 }" range { 0! 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "detachseed" label "Detach Seed" type float default { "0" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 } { randomdetach == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "detachratio" label "Detach Ratio" type float default { "0.1" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 } { randomdetach == 0 }" range { 0! 1! } export none parmtag { "autoscope" "0000000000000000" } } parm { name "clusterattr" label "Cluster Attribute" type string default { "cluster" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 }" range { 0 1 } export none } parm { name "clusterattrtol" label "Attribute Tolerance" type float default { "1e-05" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 }" range { 0 0.1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "fusedist" label "Fuse Tolerance" type float default { "0.001" } disablewhen "{ cutplaneoffset > 0 } { cluster == 0 }" range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } } group { name "settings_2" label "Interior Detail" parm { name "addinteriordetail" label "Add Interior Detail" type toggle default { "0" } disablewhen "{ createinside == 0 }" range { 0! 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "viznoisescale" label "Visualize Noise Scale" type toggle default { "off" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "planar" label "Triangulate Non-Planar Detail" type toggle default { "0" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0! 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "detailsize" label "Detail Size" type float default { "0.25" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "intnoiseamp" label "Noise Amplitude" type float default { "0.1" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "intnoisetype" label "Noise Type" type string default { "snoise" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" menu { "pnoise" "Perlin Noise" "onoise" "Original Perlin Noise" "snoise" "Sparse Convolution Noise" "anoise" "Alligator Noise" } range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "intnoisefreq" label "Frequency" type vector size 3 default { "2.5" "2.5" "2.5" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "intnoiseoffset" label "Offset" type vector size 3 default { "0" "0" "0" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "intnoiseturb" label "Turbulence" type integer default { "3" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "hassdfinput" label "hassdfinput" type toggle invisible default { "0" } range { 0 1 } export none } parm { name "depthsamplediv" label "Depth Volume Resolution" type integer default { "50" } disablewhen "{ hassdfinput == 1 } { addinteriordetail == 0 } { createinside == 0 }" range { 10! 100 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "clampmaxdisp" label "Clamp Displacement Amount to Depth" type toggle default { "on" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "clampdepthpct" label "Clamp Depth Percentage" type float default { "0.9" } disablewhen "{ clampmaxdisp == 0 } { addinteriordetail == 0 } { createinside == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "depthnoisescalebias" label "Depth / Noise Bias" type float default { "0.85" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 } { usedepthnoisescaleramp == 1 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "usedepthnoisescaleramp" label "Use Depth / Noise Ramp" type toggle default { "off" } disablewhen "{ addinteriordetail == 0 } { createinside == 0 }" range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "depthnoisescaleramp" label "Depth / Noise Ramp" type ramp_flt default { "2" } disablewhen "{ usedepthnoisescaleramp == 0 } { addinteriordetail == 0 } { createinside == 0 }" range { 1! 10 } export none parmtag { "rampvalues_var" "depthnoisescaleramp_the_key_values" } parmtag { "rampkeys_var" "depthnoisescaleramp_the_key_positions" } parmtag { "rampbasis_var" "depthnoisescaleramp_the_basis_strings" } parmtag { "autoscope" "0000000000000000" } parmtag { "rampfloatdefault" "1pos ( 0 ) 1value ( 0 ) 1interp ( catmull-rom ) 2pos ( 1 ) 2value ( 1 ) 2interp ( catmull-rom )" } parmtag { "rampshowcontrolsdefault" "0" } parmtag { "rampbasisdefault" "catmull-rom" } } } group { name "settings_3" label "Groups" parm { name "newg" label "Create Output Groups" type toggle default { "1" } range { 0 1 } export none } parm { name "groupprefix" label "Piece Group Prefix" type string default { "piece" } disablewhen "{ newg == 0 }" range { 0 1 } export none } parm { name "groupinterior" label "Interior Group" type string default { "inside" } disablewhen "{ newg == 0 } { createinside == 0 }" range { 0 1 } export none } parm { name "groupexterior" label "Exterior Group" type string default { "outside" } disablewhen "{ newg == 0 }" range { 0 1 } export none } } group { name "settings_4" label "Attributes" parm { name "copyattributes" label "Copy Cell Point Attributes" type toggle default { "0" } range { 0 1 } export none } parm { name "ptattributes" label "To Piece Points" type string default { "" } disablewhen "{ copyattributes == 0 }" range { 0 1 } export none } parm { name "primattributes" label "To Piece Primitives" type string default { "" } disablewhen "{ copyattributes == 0 }" range { 0 1 } export none } parm { name "keepinternal" label "Keep Internal Attributes" type toggle default { "0" } range { 0 1 } export none } parm { name "pieceattr" label "Primitive Piece" type string default { "piece" } disablewhen "{ keepinternal == 0 }" range { 0 1 } export none } parm { name "cellptattr" label "Primitive Cell Point" type string default { "cellpt" } disablewhen "{ keepinternal == 0 }" range { 0 1 } export none } parm { name "clipptattr" label "Primitive Clip Point" type string default { "clippt" } disablewhen "{ keepinternal == 0 } { createinside == 0 }" range { 0 1 } export none } parm { name "outsideattr" label "Primitive Outside" type string default { "outside" } disablewhen "{ keepinternal == 0 }" range { 0 1 } export none } parm { name "depthattr" label "Point Depth" type string default { "depth" } disablewhen "{ keepinternal == 0 } { createinside == 0 } { addinteriordetail == 0 }" range { 0 1 } export none } } } INDX DialogScript hLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "clamp" script "clamp" label "clamp" code { "$clamp = clamp($val, $min, $max);" } input float val "Input Value" input float min "Minimum Value" input float max "Maximum Value" output float clamp "Clamped Value" signature "1D Float Values" default { } signature "1D Integer Values" i { int int int int } signature "3D Vector Values" v { vector vector vector vector } signature "3D Point Values" p { point point point point } signature "3D Normal Values" n { normal normal normal normal } signature "3D Color Values" c { color color color color } signature "1D Uniform Float" uf { ufloat ufloat ufloat ufloat } signature "3D Uniform Vector" uv { uvector uvector uvector uvector } signature "3D Uniform Point" up { upoint upoint upoint upoint } signature "3D Uniform Normal" un { unormal unormal unormal unormal } signature "3D Uniform Color" uc { ucolor ucolor ucolor ucolor } signature "4D Values" v4 { vector4 vector4 vector4 vector4 } group { name "gs" label "Scalar Defaults" VOP_FLT_PARM(min, "1D Float Min", 0) VOP_FLT_PARM(max, "1D Float Max", 1) VOP_INT_PARM(min_i, "1D Integer Min", 0) VOP_INT_PARM(max_i, "1D Integer Max", 1) } group { name "gv" label "Vector Defaults" VOP_VEC_PARM(min_v, "3D Vector Min", 0, 0, 0) VOP_VEC_PARM(max_v, "3D Vector Max", 1, 1, 1) VOP_VEC_PARM(min_p, "3D Point Min", 0, 0, 0) VOP_VEC_PARM(max_p, "3D Point Max", 1, 1, 1) VOP_VEC_PARM(min_n, "3D Normal Min", 0, 0, 0) VOP_VEC_PARM(max_n, "3D Normal Max", 1, 1, 1) VOP_CLR_PARM(min_c, "3D Color Min", 0, 0, 0) VOP_CLR_PARM(max_c, "3D Color Max", 1, 1, 1) VOP_CLR4_PARM(min_v4, "4D Color Min", 0, 0, 0, 0) VOP_CLR4_PARM(max_v4, "4D Color Max", 1, 1, 1, 1) } group { name "gu" label "Uniform Defaults" VOP_FLT_PARM(min_uf, "1D Float Min", 0) VOP_FLT_PARM(max_uf, "1D Float Max", 1) VOP_VEC_PARM(min_uv, "3D Vector Min", 0, 0, 0) VOP_VEC_PARM(max_uv, "3D Vector Max", 1, 1, 1) VOP_VEC_PARM(min_up, "3D Point Min", 0, 0, 0) VOP_VEC_PARM(max_up, "3D Point Max", 1, 1, 1) VOP_VEC_PARM(min_un, "3D Normal Min", 0, 0, 0) VOP_VEC_PARM(max_un, "3D Normal Max", 1, 1, 1) VOP_CLR_PARM(min_uc, "3D Color Min", 0, 0, 0) VOP_CLR_PARM(max_uc, "3D Color Max", 1, 1, 1) } } INDX DialogScriptZLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "vectofloat" script "vectofloat" label "vectofloat" outercode { INCLUDE_VOPLIB } code { "vop_vectofloat($vec, $fval1, $fval2, $fval3);" } input vector vec "Input Vector" output float fval1 "Component 1" output float fval2 "Component 2" output float fval3 "Component 3" VOP_VEC_PARM(vec, "Input Vector", 0, 0, 0) VOP_VEC_PARM(vec_p, "Input Point", 0, 0, 0) VOP_VEC_PARM(vec_n, "Input Normal", 0, 0, 0) VOP_VEC_PARM(vec_c, "Input Color", 0, 0, 0) VOP_VEC_PARM(vec_uv, "Uniform Vector", 0, 0, 0) VOP_VEC_PARM(vec_up, "Uniform Point", 0, 0, 0) VOP_VEC_PARM(vec_un, "Uniform Normal", 0, 0, 0) VOP_VEC_PARM(vec_uc, "Uniform Color", 0, 0, 0) signature "3D Vector Values" default { vector float float float } signature "3D Point Values" p { point float float float } signature "3D Normal Values" n { normal float float float } signature "3D Color Values" c { color float float float } signature "3D Uniform Vector" uv { uvector ufloat ufloat ufloat } signature "3D Uniform Point" up { upoint ufloat ufloat ufloat } signature "3D Uniform Normal" un { unormal ufloat ufloat ufloat } signature "3D Uniform Color" uc { ucolor ufloat ufloat ufloat } } INDXContents9Ms DialogScript9FqXHouNC1033600bba04d87731e08919230fNON_COMMERCIAL_FILE!!!# Dialog script for color automatically generated 06/14/07 11:03:29 { name color script color label Color help { "" } inputlabel 1 "Sub-Network Input #1" inputlabel 2 "Sub-Network Input #2" inputlabel 3 "Sub-Network Input #3" inputlabel 4 "Sub-Network Input #4" parm { name "group" label "Group" type string default { "" } menutoggle { [ "opmenu -l constant group" ] } range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } bindselector uveditselect "Assign Colors" "Select the geometry to apply colors to and right click to complete" 0 1 all 0 grouptype 0 } parm { name "grouptype" label "Group Type" type integer default { "0" } menu { "guess" "Guess from Group" "vertices" "Vertices" "edges" "Edges" "points" "Points" "prims" "Primitives" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "class" label "Class" type integer default { "2" } menu { "detail" "Detail" "primitive" "Primitive" "point" "Point" "vertex" "Vertex" } range { 0 10 } export all parmtag { "autoscope" "0000" } } parm { name "colortype" label "Color Type" type integer default { "0" } menu { "0" "Constant" "1" "Bounding Box" "2" "Random" } range { 0 10 } export all parmtag { "autoscope" "0000" } } parm { name "color" label "Color" type color size 3 default { "1" "1" "1" } disablewhen "{ colortype == 1 } { colortype == 2 }" range { 0 1 } export all parmtag { "autoscope" "0000" } } parm { name "seed" label "Seed" type float default { "0" } disablewhen "{ colortype == 0 } { colortype == 1 }" range { 0 10 } export none parmtag { "autoscope" "0000" } } } INDX DialogScriptYLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "inttofloat" script "inttofloat" label "inttofloat" code { "$fval = $ival;" } input int ival "Integer Value" output float fval "Float Output" parm { name ival label "Integer Input" type int size 1 default { 0 } } } INDX DialogScript [Lt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "twoway" script "twoway" label "twoway" code { "$result = ($condtype != 0 ? ($condition != 0 ? $input2 : $input1)" " : ($condition != 0 ? $input1 : $input2));" } input int condition "Condition Value (int)" input float input1 "Input 1" input float input2 "Input 2" output float result "Output Value" signature "Float Values" default { } signature "Integer Values" i { int int int int } signature "String Values" s { int string string string } signature "Vector Values" v { int vector vector vector } signature "Point Values" p { int point point point } signature "Normal Values" n { int normal normal normal } signature "Color Values" c { int color color color } signature "BSDF Values" b { int bsdf bsdf bsdf } signature "Vector4 Values" v4 { int vector4 vector4 vector4 } signature "Matrix3 Values" m3 { int matrix3 matrix3 matrix3 } signature "Matrix Values" m { int matrix matrix matrix } signature "Uniform Float" uf { ufloat ufloat ufloat ufloat } signature "Uniform Vector" uv { ufloat uvector uvector uvector } signature "Uniform Point" up { ufloat upoint upoint upoint } signature "Uniform Normal" un { ufloat unormal unormal unormal } signature "Uniform Color" uc { ufloat ucolor ucolor ucolor } signature "Uniform Matrix" um { ufloat umatrix umatrix umatrix } parm { name condtype label Condition type int menu { "true" "True ( != 0 )" "false" "False ( == 0 )" } default { 0 } } group { name "g0" label "Defaults" VOP_FLT_PARM(input2, "Float Input 2", 0) VOP_INT_PARM(input2_i, "Integer Input 2", 0) VOP_STR_PARM(input2_s, "String Input 2", "") VOP_VEC_PARM(input2_v, "Vector Input 2", 0, 0, 0) VOP_VEC_PARM(input2_p, "Point Input 2", 0, 0, 0) VOP_VEC_PARM(input2_n, "Normal Input 2", 0, 0, 0) VOP_CLR_PARM(input2_c, "Color Input 2", 1, 1, 1) VOP_VEC4_PARM(input2_v4, "Vector4 Input 2", 0, 0, 0, 0) } group { name "g1" label "Matrix Defaults" parm { name input2_m3 label "Matrix3 Input 2" type float size 9 default { 1 0 0 0 1 0 0 0 1 } } parm { name input2_m label "Matrix Input 2" type float size 16 default { 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 } } } group { name "g2" label "Uniform Defaults" VOP_FLT_PARM(input2_uf, "Float Input 2", 0) VOP_VEC_PARM(input2_uv, "Vector Input 2", 0, 0, 0) VOP_VEC_PARM(input2_up, "Point Input 2", 0, 0, 0) VOP_VEC_PARM(input2_un, "Normal Input 2", 0, 0, 0) VOP_VEC_PARM(input2_uc, "Color Input 2", 0, 0, 0) parm { name input2_um label "Matrix Input 2" type float size 16 default { 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 } } } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "complement" script "complement" label "complement" code { "$complem = -$val;" "$complem += 1;" } input float val "Input Value" output float complem "Complement: 1 - Input Value" signature "1D Float Values" default { } signature "1D Integer Values" i { int int } signature "3D Vector Values" v { vector vector } signature "3D Point Values" p { point point } signature "3D Normal Values" n { normal normal } signature "3D Color Values" c { color color } signature "4D Values" v4 { vector4 vector4 } signature "3D Uniform Float" uf { ufloat ufloat } signature "3D Uniform Vector" uv { uvector uvector } signature "3D Uniform Point" up { upoint upoint } signature "3D Uniform Normal" un { unormal unormal } signature "3D Uniform Color" uc { ucolor ucolor } group { name "gv" label "Defaults" VOP_FLT_PARM(val, "1D Float Input", 1) VOP_INT_PARM(val_i, "1D Integer Input", 1) VOP_VEC_PARM(val_v, "3D Vector", 1, 1, 1) VOP_VEC_PARM(val_p, "3D Point", 1, 1, 1) VOP_VEC_PARM(val_n, "3D Normal", 1, 1, 1) VOP_CLR_PARM(val_c, "3D Color", 1, 1, 1) VOP_VEC4_PARM(val_v4,"4D Vector", 1, 1, 1, 1) } group { name "gu" label "Uniform Defaults" VOP_FLT_PARM(val_uf, "1D Float", 1) VOP_VEC_PARM(val_uv, "3D Vector", 1, 1, 1) VOP_VEC_PARM(val_up, "3D Point", 1, 1, 1) VOP_VEC_PARM(val_un, "3D Normal", 1, 1, 1) VOP_CLR_PARM(val_uc, "3D Color", 1, 1, 1) } } INDX DialogScriptqLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "negate" script "negate" label "negate" code { "$negated = -$val;" } input int val "Input Value" output int negated "Negated Value" signature "1D Integer Values" default { } signature "1D Float Values" f { float float } signature "3D Vector Values" v { vector vector } signature "3D Point Values" p { point point } signature "3D Normal Values" n { normal normal } signature "3D Color Values" c { color color } signature "4D Values" v4 { vector4 vector4 } signature "1D Uniform Float" uf { ufloat ufloat } signature "3D Uniform Vector" uv { uvector uvector } signature "3D Uniform Point" up { upoint upoint } signature "3D Uniform Normal" un { unormal unormal } signature "3D Uniform Color" uc { ucolor ucolor } } INDX DialogScriptDLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "fit" script "fit" label "fit" outercode { INCLUDE_VOPLIB } code { "$shift = vop_fit($val, $srcmin, $srcmax, $destmin, $destmax);" } input float val "Input Value" input float srcmin "Minimum Value In Source Range" input float srcmax "Maximum Value In Source Range" input float destmin "Minimum Value In Destination Range" input float destmax "Maximum Value In Destination Range" output float shift "Shifted Value" signature "1D Values" default { } signature "3D Values" v { vector vector vector vector vector vector } signature "4D Values" v4 { vector4 vector4 vector4 vector4 vector4 vector4 } signature "1D Float Values" default { } signature "3D Vector Values" v { vector vector vector vector vector vector } signature "3D Point Values" p { point point point point point point } signature "3D Normal Values" n { normal normal normal normal normal normal } signature "3D Color Values" c { color color color color color color } signature "4D Values" v4 { vector4 vector4 vector4 vector4 vector4 vector4 } signature "3D Uniform Float" uf { ufloat ufloat ufloat ufloat ufloat ufloat } signature "3D Uniform Vector" uv { uvector uvector uvector uvector uvector uvector } signature "3D Uniform Point" up { upoint upoint upoint upoint upoint upoint } signature "3D Uniform Normal" un { unormal unormal unormal unormal unormal unormal } signature "3D Uniform Color" uc { ucolor ucolor ucolor ucolor ucolor ucolor } group { name "gs" label "1D Defaults" VOP_FLT_PARM(srcmin, "1D Src Min", 0) VOP_FLT_PARM(srcmax, "1D Src Max", 1) VOP_FLT_PARM(destmin, "1D Dest Min", 0) VOP_FLT_PARM(destmax, "1D Dest Max", 1) } group { name "gv" label "3D Defaults" VOP_VEC_PARM(srcmin_v, "3D Vector Src Min", 0, 0, 0) VOP_VEC_PARM(srcmax_v, "3D Vector Src Max", 1, 1, 1) VOP_VEC_PARM(destmin_v, "3D Vector Dest Min", 0, 0, 0) VOP_VEC_PARM(destmax_v, "3D Vector Dest Max", 1, 1, 1) VOP_VEC_PARM(srcmin_p, "3D Point Src Min", 0, 0, 0) VOP_VEC_PARM(srcmax_p, "3D Point Src Max", 1, 1, 1) VOP_VEC_PARM(destmin_p, "3D Point Dest Min", 0, 0, 0) VOP_VEC_PARM(destmax_p, "3D Point Dest Max", 1, 1, 1) VOP_VEC_PARM(srcmin_n, "3D Normal Src Min", 0, 0, 0) VOP_VEC_PARM(srcmax_n, "3D Normal Src Max", 1, 1, 1) VOP_VEC_PARM(destmin_n, "3D Normal Dest Min", 0, 0, 0) VOP_VEC_PARM(destmax_n, "3D Normal Dest Max", 1, 1, 1) VOP_CLR_PARM(srcmin_c, "3D Color Src Min", 0, 0, 0) VOP_CLR_PARM(srcmax_c, "3D Color Src Max", 1, 1, 1) VOP_CLR_PARM(destmin_c, "3D Color Dest Min", 0, 0, 0) VOP_CLR_PARM(destmax_c, "3D Color Dest Max", 1, 1, 1) } group { name "gv4" label "4D Defaults" VOP_VEC4_PARM(srcmin_v4, "4D Src Min", 0, 0, 0, 0) VOP_VEC4_PARM(srcmax_v4, "4D Src Max", 1, 1, 1, 1) VOP_VEC4_PARM(destmin_v4, "4D Dest Min", 0, 0, 0, 0) VOP_VEC4_PARM(destmax_v4, "4D Dest Max", 1, 1, 1, 1) } group { name "gu" label "Uniform Defaults" VOP_FLT_PARM(srcmin_uf, "1D Src Min", 0) VOP_FLT_PARM(srcmax_uf, "1D Src Max", 1) VOP_FLT_PARM(destmin_uf, "1D Dest Min", 0) VOP_FLT_PARM(destmax_uf, "1D Dest Max", 1) VOP_VEC_PARM(srcmin_uv, "3D Vector Src Min", 0, 0, 0) VOP_VEC_PARM(srcmax_uv, "3D Vector Src Max", 1, 1, 1) VOP_VEC_PARM(destmin_uv, "3D Vector Dest Min", 0, 0, 0) VOP_VEC_PARM(destmax_uv, "3D Vector Dest Max", 1, 1, 1) VOP_VEC_PARM(srcmin_up, "3D Point Src Min", 0, 0, 0) VOP_VEC_PARM(srcmax_up, "3D Point Src Max", 1, 1, 1) VOP_VEC_PARM(destmin_up, "3D Point Dest Min", 0, 0, 0) VOP_VEC_PARM(destmax_up, "3D Point Dest Max", 1, 1, 1) VOP_VEC_PARM(srcmin_un, "3D Normal Src Min", 0, 0, 0) VOP_VEC_PARM(srcmax_un, "3D Normal Src Max", 1, 1, 1) VOP_VEC_PARM(destmin_un, "3D Normal Dest Min", 0, 0, 0) VOP_VEC_PARM(destmax_un, "3D Normal Dest Max", 1, 1, 1) VOP_CLR_PARM(srcmin_uc, "3D Color Src Min", 0, 0, 0) VOP_CLR_PARM(srcmax_uc, "3D Color Src Max", 1, 1, 1) VOP_CLR_PARM(destmin_uc, "3D Color Dest Min", 0, 0, 0) VOP_CLR_PARM(destmax_uc, "3D Color Dest Max", 1, 1, 1) } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "addgroup" script "addgroup" label "addgroup" code { "$found = $ptnum;" "addgroup($group, $ptnum);" } forcecode input string group "Group Name" input int ptnum "Point Number" output int found "Point Number" parm { name group label "Group" type string default { "group1" } } parm { name ptnum label "Point Number" type int size 1 default { 0 } } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "floattovec" script "floattovec" label "floattovec" outercode { INCLUDE_VOPLIB } code { "$vec = vop_floattovec($fval1, $fval2, $fval3);" } input float fval1 "Component 1" input float fval2 "Component 2" input float fval3 "Component 3" output vector vec "Output Vector" VOP_FLT_PARM(fval1, "Component 1", 0) VOP_FLT_PARM(fval2, "Component 2", 0) VOP_FLT_PARM(fval3, "Component 3", 0) VOP_FLT_PARM(fval1_uv, "Uniform Component 1", 0) VOP_FLT_PARM(fval2_uv, "Uniform Component 2", 0) VOP_FLT_PARM(fval3_uv, "Uniform Component 3", 0) signature "3D Vector Output" default { } signature "3D Point Output" p { float float float point } signature "3D Normal Output" n { float float float normal } signature "3D Color Output" c { float float float color } signature "3D Uniform Vector" uv { ufloat ufloat ufloat uvector } signature "3D Uniform Point" up { ufloat ufloat ufloat upoint } signature "3D Uniform Normal" un { ufloat ufloat ufloat unormal } signature "3D Uniform Color" uc { ufloat ufloat ufloat ucolor } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "pcimport" script "pcimport" label "pcimport" code { "$success = pcimport($handle, $channel, $data);" } input int handle "pcopen Handle" input string channel "Channel Name" output int success "Return 1 For Success, 0 For Failure" output vector data "Channel Value" signature "Integer Channel" i { int string int int } signature "Float Channel" f { int string int float } signature "Vector Channel" default { } signature "Vector4 Channel" v4 { int string int vector4 } signature "Matrix3 Channel" m3 { int string int matrix3 } signature "Matrix Channel" m { int string int matrix } parm { name handle label "PCOpen Handle" type int size 1 default { -1 } } parm { name channel label "Channel" type string default { "P" } } } INDX DialogScriptxLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "mulconst" script "mulconst" label "mulconst" code { "$scaled = $val * $mulconst;" } input float val "Input Value" output float scaled "Input Value * Constant" signature "1D Float Values" default { } signature "1D Integer Values" i { int int } signature "3D Vector Values" v { vector vector } signature "3D Point Values" p { point point } signature "3D Normal Values" n { normal normal } signature "3D Color Values" c { color color } signature "3D BSDF Values" b { bsdf bsdf } signature "4D Values" v4 { vector4 vector4 } signature "3x3 Matrix " m3 { matrix3 matrix3 } signature "4x4 Matrix " m4 { matrix matrix } signature "1D Uniform Float" uf { ufloat ufloat } signature "3D Uniform Vector" uv { uvector uvector } signature "3D Uniform Point" up { upoint upoint } signature "3D Uniform Normal" un { unormal unormal } signature "3D Uniform Color" uc { ucolor ucolor } parm { name mulconst label "Multiplier" type float size 1 default { 1.0 } } } INDX DialogScriptfLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "turbnoise" script "turbnoise" label "turbnoise" outercode { "#include " } code { "if ($type == \"onoise\")" "{" " $noise = onoise($pos*$freq - $offset, $turb, $rough, $atten) * $amp;" "}" "else if ($type == \"snoise\")" "{" " $noise = snoise($pos*$freq - $offset, $turb, $rough, $atten) * $amp;" "}" "else if ($type == \"anoise\")" "{" " $noise = anoise($pos*$freq - $offset, $turb, $rough, $atten) * $amp;" "}" "else" "{" "#if !strcmp($signature, \"default\")" " $noise = vop_perlinNoiseVF($pos * $freq - $offset, $turb, $amp, $rough, $atten);" "#else" " $noise = vop_perlinNoiseVV($pos * $freq - $offset, $turb, $amp, $rough, $atten);" "#endif" "}" } input string type "Noise Type" parm { name type label "Noise Type" type string menu { "pnoise" "Perlin Noise" "onoise" "Original Perlin Noise" "snoise" "Sparse Convolution Noise" "anoise" "Alligator Noise" } default { "anoise" } } VOP_VEC_INPUT ( pos, "Position", 0, 0, 0) VOP_VEC_INPUT ( freq, "Frequency", 1, 1, 1) VOP_VEC_INPUT ( offset, "Offset", 0, 0, 0) VOP_FLT_INPUT_R( amp, "Amplitude", 1, -1, 1) VOP_FLT_INPUT ( rough, "Roughness", .5) VOP_FLT_INPUT ( atten, "Attenuation", 1) VOP_INT_INPUT_R( turb, "Turbulence", 5, 0, 10) output float noise "Noise" signature "1D Noise" default { } signature "3D Noise" v { string vector vector vector float float float int vector } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "bias" script "bias" label "bias" outercode { INCLUDE_VOPLIB } code { "" "#if !strcmp($signature, \"v4\")" " float $cr = vop_bias($val.x, $amount.x);" " float $cg = vop_bias($val.y, $amount.y);" " float $cb = vop_bias($val.z, $amount.z);" " float $ca = vop_bias($val.w, $amount.w);" " $bias = set($cr, $cg, $cb, $ca);" "" "#elif (!strcmp($signature, \"v\") || !strcmp($signature, \"c\"))" " float $cr = vop_bias($val.x, $amount.x);" " float $cg = vop_bias($val.y, $amount.y);" " float $cb = vop_bias($val.z, $amount.z);" " $bias = set($cr, $cg, $cb);" "" "#else" " $bias = vop_bias($val, $amount);" "#endif" } input float val "Input" input float amount "Bias" output float bias "Result" signature "1D Values" default { float float float } signature "3D Colors" c { color color color } signature "3D Vector" v { vector vector vector } signature "4D Vector" v4 { vector4 vector4 vector4 } VOP_FLT_PARM(val, "1D Input", 1) VOP_FLT_PARM(amount, "1D Gain", 0.5) VOP_CLR_PARM(val_c, "3D Input", 1, 1, 1) VOP_VEC_PARM(amount_c, "3D Gain", 0.5, 0.5, 0.5) VOP_VEC_PARM(val_v, "3D Input", 1, 1, 1) VOP_VEC_PARM(amount_v, "3D Gain", 0.5, 0.5, 0.5) VOP_VEC4_PARM(val_v4, "4D Input", 1, 1, 1, 1) VOP_VEC4_PARM(amount_v4,"4D Gain", 0.5, 0.5, 0.5, 0.5) } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "random" script "random" label "random" code { "#ifdef __vex" " $rand = random($pos);" "#else" " $rand = cellnoise($pos);" "#endif" } input float pos "Position" output float rand "Random Number" signature "1D Float Input, 1D Output" default { } signature "1D Float Input, 3D Vector" fv { float vector } signature "1D Float Input, 3D Point" fp { float point } signature "1D Float Input, 3D Normal" fn { float normal } signature "1D Float Input, 3D Color" fc { float color } signature "1D Float Input, 4D Output" f4d { float vector4 } signature "1D Integer Input, 1D Output" i1d { int float } signature "1D Integer Input, 3D Vector" iv { int vector } signature "1D Integer Input, 3D Point" ip { int point } signature "1D Integer Input, 3D Normal" in { int normal } signature "1D Integer Input, 3D Color" ic { int color } signature "1D Integer Input, 4D Output" i4d { int vector4 } signature "3D Vector Input, 1D Output" v1d { vector float } signature "3D Vector Input, 3D Vector" vv { vector vector } signature "3D Vector Input, 3D Point" vp { vector point } signature "3D Vector Input, 3D Normal" vn { vector normal } signature "3D Vector Input, 3D Color" vc { vector color } signature "3D Vector, 4D Output" v4d { vector vector4 } signature "3D Point Input, 1D Output" p1d { point float } signature "3D Point Input, 3D Vector" pv { point vector } signature "3D Point Input, 3D Point" pp { point point } signature "3D Point Input, 3D Normal" pn { point normal } signature "3D Point Input, 3D Color" pc { point color } signature "3D Normal Input, 1D Output" n1d { normal float } signature "3D Normal Input, 3D Vector" nv { normal vector } signature "3D Normal Input, 3D Point" np { normal point } signature "3D Normal Input, 3D Normal" nn { normal normal } signature "3D Normal Input, 3D Color" nc { normal color } signature "3D Color Input, 1D Output" c1d { color float } signature "3D Color Input, 3D Vector" cv { color vector } signature "3D Color Input, 3D Point" cp { color point } signature "3D Color Input, 3D Normal" cn { color normal } signature "3D Color Input, 3D Color" cc { color color } signature "4D Input, 1D Output" v41d { vector4 float } signature "4D Input, 3D Output" v43d { vector4 vector } signature "4D Input, 4D Output" v44d { vector4 vector4 } signature "1D Uniform Float, 1D Output" uuf { ufloat ufloat } signature "1D Uniform Float, 3D Vector" ufv { ufloat uvector } signature "1D Uniform Float, 3D Point" ufp { ufloat upoint } signature "1D Uniform Float, 3D Normal" ufn { ufloat unormal } signature "1D Uniform Float, 3D Color" ufc { ufloat ucolor } signature "3D Uniform Vector, 1D Output" uv1d { uvector ufloat } signature "3D Uniform Vector, 3D Vector" uvv { uvector uvector } signature "3D Uniform Vector, 3D Point" uvp { uvector upoint } signature "3D Uniform Vector, 3D Normal" uvn { uvector unormal } signature "3D Uniform Vector, 3D Color" uvc { uvector ucolor } signature "3D Uniform Point, 1D Output" up1d { upoint ufloat } signature "3D Uniform Point, 3D Vector" upv { upoint uvector } signature "3D Uniform Point, 3D Point" upp { upoint upoint } signature "3D Uniform Point, 3D Normal" upn { upoint unormal } signature "3D Uniform Point, 3D Color" upc { upoint ucolor } signature "3D Uniform Normal, 1D Output" un1d { unormal ufloat } signature "3D Uniform Normal, 3D Vector" unv { unormal uvector } signature "3D Uniform Normal, 3D Point" unp { unormal upoint } signature "3D Uniform Normal, 3D Normal" unn { unormal unormal } signature "3D Uniform Normal, 3D Color" unc { unormal ucolor } signature "3D Uniform Color, 1D Output" uc1d { ucolor ufloat } signature "3D Uniform Color, 3D Vector" ucv { ucolor uvector } signature "3D Uniform Color, 3D Point" ucp { ucolor upoint } signature "3D Uniform Color, 3D Normal" ucn { ucolor unormal } signature "3D Uniform Color, 3D Color" ucc { ucolor ucolor } group { name "gv" label "Default Position" VOP_FLT_PARM(pos, "1D Float Position", 0) VOP_FLT_PARM(pos_i, "1D Integer Position", 0) VOP_VEC_PARM(pos_v1d, "3D Vector Values", 0, 0, 0) VOP_VEC_PARM(pos_p1d, "3D Point Values", 0, 0, 0) VOP_VEC_PARM(pos_n1d, "3D Normal Values", 0, 0, 0) VOP_CLR_PARM(pos_c1d, "3D Color Values", 0, 0, 0) VOP_VEC4_PARM(pos_v41d, "4D Position", 0, 0, 0, 0) } group { name "gu" label "Uniform Defaults" VOP_FLT_PARM(pos_uf1d, "1D Float Position", 0) VOP_VEC_PARM(pos_uv1d, "3D Vector Values", 0, 0, 0) VOP_VEC_PARM(pos_up1d, "3D Point Values", 0, 0, 0) VOP_VEC_PARM(pos_un1d, "3D Normal Values", 0, 0, 0) VOP_CLR_PARM(pos_uc1d, "3D Color Values", 0, 0, 0) } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "length" script "length" label "length" code { "$len = length($vec);" } input vector vec "Vector" output float len "Vector Length" signature "3D Vector" default { } signature "3D Point" p { point float } signature "3D Normal" n { normal float } signature "4D Vector" v4 { vector4 float } signature "3D Uniform Vector" uv { uvector ufloat } signature "3D Uniform Point" up { upoint ufloat } signature "3D Uniform Normal" un { unormal float } group { name "g0" label "Defaults" VOP_VEC_PARM(vec, "3D Vector", 1, 1, 1) VOP_VEC_PARM(vec_p, "3D Point", 1, 1, 1) VOP_VEC_PARM(vec_n, "3D Normal", 1, 1, 1) VOP_VEC4_PARM(vec_v4, "4D Vector", 1, 1, 1, 1) } group { name "g0" label "Uniform Defaults" VOP_VEC_PARM(vec_uv, "3D Uniform Vector", 1, 1, 1) VOP_VEC_PARM(vec_up, "3D Uniform Point", 1, 1, 1) VOP_VEC_PARM(vec_un, "3D Uniform Normal", 1, 1, 1) } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "cross" script "cross" label "cross" outercode { INCLUDE_VOPLIB } code { "$crossprod = vop_cross($vec1, $vec2);" } output vector crossprod "Cross Product" VOP_VEC_INPUT(vec1, "Vector 1", 1, 0, 0) VOP_VEC_INPUT(vec2, "Vector 2", 0, 1, 0) signature "3D Vector Values" default { } signature "3D Vector/Normal" vn { vector normal vector } signature "3D Normal/Vector" nv { normal vector vector } signature "3D Normal/Normal" nn { normal normal vector } signature "3D Uniform Vector" uv { uvector uvector uvector } signature "3D Uniform Vector/Normal" vn { uvector unormal uvector } signature "3D Uniform Normal/Vector" nv { unormal uvector uvector } signature "3D Uniform Normal/Normal" nn { unormal unormal uvector } } INDX DialogScript *Lt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "voronoise" script "voronoise" label "voronoise" outercode { INCLUDE_VOPLIB } code { "if ($isconnected_period)" "{" " vop_vnoise($pos * $freq - $offset, $jitter, $seed, $dist1, $dist2," " $near1, $near2, $period);" "}" "else" "{" " vop_vnoise($pos * $freq - $offset, $jitter, $seed, $dist1, $dist2," " $near1, $near2);" "}" } input float pos "Position" input float freq "Frequency" input float offset "Offset" input float jitter "Jitter" input int period "Periodicity" output float dist1 "Distance To Point 1 (To Nearest Point)" output float dist2 "Distance To Point 2" output float near1 "Point 1 (Nearest Point) Location" output float near2 "Point 2 Location" output int seed "Seed" signature "1D Noise" default { } signature "3D Vector Noise" v { vector vector vector vector vector float float vector vector int } signature "3D Point Noise" p { point point point point point float float point point int } signature "3D Normal Noise" n { normal normal normal normal normal float float normal normal int } signature "3D Color Noise" c { color color color color color float float color color int } signature "4D Noise" v4 { vector4 vector4 vector4 vector4 vector4 float float vector4 vector4 int } group { name "gp" label "Position" VOP_FLT_PARM(pos, "1D Position", 0) VOP_VEC_PARM(pos_v, "3D Vector", 0, 0, 0) VOP_VEC_PARM(pos_p, "3D Point", 0, 0, 0) VOP_VEC_PARM(pos_n, "3D Normal", 0, 0, 0) VOP_VEC_PARM(pos_c, "3D Color", 0, 0, 0) VOP_VEC4_PARM(pos_v4, "4D Position", 0, 0, 0, 0) } group { name "gf" label "Frequency" VOP_FLT_PARM(freq, "1D Frequency", 1) VOP_VEC_PARM(freq_v, "3D Vector Frequency", 1, 1, 1) VOP_VEC_PARM(freq_p, "3D Point Frequency", 1, 1, 1) VOP_VEC_PARM(freq_n, "3D Normal Frequency", 1, 1, 1) VOP_VEC_PARM(freq_c, "3D Color Frequency", 1, 1, 1) VOP_VEC4_PARM(freq_v4, "4D Frequency", 1, 1, 1, 1) } group { name "go" label "Offset" VOP_FLT_PARM(offset, "1D Offset", 0) VOP_VEC_PARM(offset_v, "3D Vector Offset", 0, 0, 0) VOP_VEC_PARM(offset_p, "3D Point Offset", 0, 0, 0) VOP_VEC_PARM(offset_n, "3D Normal Offset", 0, 0, 0) VOP_VEC_PARM(offset_c, "3D Color Offset", 0, 0, 0) VOP_VEC4_PARM(offset_v4, "4D Offset", 0, 0, 0, 0) } group { name "gj" label "Jitter" VOP_FLT_PARM(jitter, "1D Jitter", 1) VOP_VEC_PARM(jitter_v, "3D Vector Jitter", 1, 1, 1) VOP_VEC_PARM(jitter_p, "3D Point Jitter", 1, 1, 1) VOP_VEC_PARM(jitter_n, "3D Normal Jitter", 1, 1, 1) VOP_VEC_PARM(jitter_c, "3D Color Jitter", 1, 1, 1) VOP_VEC4_PARM(jitter_v4, "4D Jitter", 1, 1, 1, 1) } } INDXContents9Ms DialogScript9gFm+HouNC1033600bba04d87731e08919230fNON_COMMERCIAL_FILE!!!# Dialog script for linktosourceobject automatically generated 09/13/07 13:02:35 { name linktosourceobject script sourceobject label "Link To Source Object" help { "" } inputlabel 1 "Input 0" inputlabel 2 "Input 1" inputlabel 3 "Input 2" inputlabel 4 "Input 3" parm { name "objpath" label "OBJ Path" type oppath default { "" } range { 0 1 } export none parmtag { "oprelative" "." } parmtag { "opfilter" "!!OBJ!!" } } parm { name "sharedata" label "Data Sharing" type ordinal default { "off" } menu { "off" "Do Not Share Data" "on" "Share Data Across All Time" "onestep" "Share Data In One Timestep" } range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "activation" label "Activation" type integer default { "1" } range { 0 10 } export none parmtag { "autoscope" "0000000000000000" } } parm { name "group" label "Group" type string default { "*" } menutoggle { [ "opmenu -l emptydata1 group" ] } range { 0 1 } export none parmtag { "autoscope" "0000000000000000" } } } INDX DialogScriptALt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "addattrib" script "addattrib" label "addattrib" code { "$newadata = $adata;" "addattribute($attrib, $newadata, \"type\", $typemodifier);" "if ($localvar != \"\")" " addvariablename($attrib, $localvar);" } forcecode input string attrib "Attribute Name" input vector adata "Attribute Value" input string localvar "Local Variable Name" output vector newadata "Attribute Value" signature "Float Attribute" f { string float string float } signature "Integer Attribute" i { string int string int } signature "Vector Attribute" default { } signature "Vector4 Attribute" v4 { string vector4 string vector4 } signature "Matrix3 Attribute" m3 { string matrix3 string matrix3 } signature "Matrix Attribute" m { string matrix string matrix } parm { name attrib label "Attribute" type string default { "Cd" } } parm { name localvar label "Local Variable Name" type string default { "" } } parm { name adata_f label "Data Float" type float size 1 default { 0.0 } } parm { name adata_i label "Data Integer" type int size 1 default { 0 } } parm { name adata label "Data Vector" type float size 3 default { 0.0 0.0 0.0 } } parm { name adata_v4 label "Data Vector4" type float size 4 default { 0.0 0.0 0.0 0.0 } } parm { name adata_m3 label "Data Matrix3" type float size 9 default { 1 0 0 0 1 0 0 0 1 } } parm { name adata_m label "Data Matrix" type float size 16 default { 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 } } parm { name typemodifier label "Type Modifier" type string default { "" } menu { "" "None" "vector" "Vector Data" "indexpair" "Index/Pair (Capture Attribute)" } } } INDX DialogScripttLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ { name "importattrib" script "importattrib" label "importattrib" code { "if( $isconnected_ptnum )" " $success = import($attrib, $adata, $input_index, $ptnum);" "else" " $success = import($attrib, $adata, $input_index);" } input string attrib "Attribute Name" input int input_index "OP Input Index" input int ptnum "Point Number" output int success "Return 1 For Success, 0 For Failure" output vector adata "Attribute Value" signature "Float Attribute" f { string int int int float } signature "Integer Attribute" i { string int int int int } signature "Vector Attribute" default { } signature "Vector4 Attribute" v4 { string int int int vector4 } signature "Matrix3 Attribute" m3 { string int int int matrix3 } signature "Matrix Attribute" m { string int int int matrix } parm { name attrib label "Attribute" type string default { "Cd" } } parm { name input_index label "OP Input Index" type int size 1 default { 0 } range { 0 3 } } } INDXContents9Ms DialogScript9FAHouNC1033600bba04d87731e08919230fNON_COMMERCIAL_FILE!!!# Dialog script for objpos automatically generated 07/30/07 05:15:45 { name objpos script objpos label "OBJ Position" help { "" } inputlabel 1 "Input 0" inputlabel 2 "Input 1" inputlabel 3 "Input 2" inputlabel 4 "Input 3" parm { name "objpath" label "OBJ Path" type oppath default { "" } range { 0 1 } export none parmtag { "oprelative" "." } parmtag { "opfilter" "!!OBJ!!" } parmtag { "autoscope" "0000" } } parm { name "undogeoxform" label "Compensate for Geometry Transform" type toggle default { "1" } range { 0 1 } export none } parm { name "defaultparmop" label "Default Operation" type integer default { "1" } menu { "initial" "Set Initial" "always" "Set Always" "never" "Set Never" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "sharedata" label "Data Sharing" type integer default { "0" } menu { "off" "Do Not Share Data" "on" "Share Data Across All Time" "onestep" "Share Data In One Timestep" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "activation" label "Activation" type integer default { "1" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "group" label "Group" type string default { "*" } menutoggle { [ "opmenu -l motion1 group" ] } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "dataname" label "Data Name" type string default { "Position" } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "uniquedataname" label "Unique Data Name" type toggle default { "0" } range { 0 1 } export none parmtag { "autoscope" "0000" } } } INDXContents9Ms DialogScript9FmHouNC1033600bba04d87731e08919230fNON_COMMERCIAL_FILE!!!# Dialog script for rbdautofreeze automatically generated 09/13/07 13:06:03 { name rbdautofreeze script rbdautofreeze label "RBD Auto Freeze" help { "" } inputlabel 1 "Objects to be processed" inputlabel 2 "Input 1" inputlabel 3 "Input 2" inputlabel 4 "Input 3" parm { name "activation" label "Activation" type integer default { "1" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "group" label "Group" type string default { "*" } menutoggle { [ "opmenu -l applydata1 group" ] } range { 0 1 } export none parmtag { "autoscope" "0000" } } parm { name "angvelscale" label "Angular Velocity Scale" type float default { "0.01" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "motiondecay" label "Motion Decay" type float default { "0.8" } range { 0! 1! } export none parmtag { "autoscope" "0000" } } parm { name "enablethreshold" label "Enable Threshold" type float default { "10" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "freezethreshold" label "Freeze Threshold" type float default { "0.3" } range { 0 10 } export none parmtag { "autoscope" "0000" } } parm { name "melt" label "Melt" type integer default { "0" } range { 0 10 } export none parmtag { "autoscope" "0000" } } } INDXContents9Ms DialogScript9gL { name "pciterate" script "pciterate" label "pciterate" code { "$success = pciterate($handle);" } output int success "Found Point" VOP_INT_INPUT(handle, "Handle from pcopen", -1) } INDX DialogScript Lt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "dot" script "dot" label "dot" outercode { INCLUDE_VOPLIB } code { "$dotprod = vop_dot($vec1, $vec2);" } input vector vec1 "Vector 1" input vector vec2 "Vector 2" output float dotprod "Dot Product" group { name "gv" label "Defaults" VOP_VEC_PARM(vec1, "Vector 1", 1, 0, 0) VOP_VEC_PARM(vec2, "Vector 2", 0, 1, 0) VOP_CLR_PARM(vec1_c, "Color 1", 1, 0, 0) VOP_CLR_PARM(vec2_c, "Color 2", 0, 1, 0) } group { name "gu" label "Uniform Defaults" VOP_VEC_PARM(vec1_uv, "Vector 1", 1, 0, 0) VOP_VEC_PARM(vec2_uv, "Vector 2", 0, 1, 0) VOP_CLR_PARM(vec1_uc, "Color 1", 1, 0, 0) VOP_CLR_PARM(vec2_uc, "Color 2", 0, 1, 0) } signature "3D Vector Values" default { } signature "3D Vector/Point" vp { vector point float } signature "3D Vector/Normal" vn { vector normal float } signature "3D Point/Vector" pv { point vector float } signature "3D Point/Point" pp { point point float } signature "3D Point/Normal" pn { point normal float } signature "3D Normal/Vector" nv { normal vector float } signature "3D Normal/Point" np { normal point float } signature "3D Normal/Normal" nn { normal normal float } signature "3D Color Values" c { color color float } signature "3D Uniform Vector" uv { uvector uvector ufloat } signature "3D Uniform Vector/Point" vp { uvector upoint ufloat } signature "3D Uniform Vector/Normal" vn { uvector unormal ufloat } signature "3D Uniform Point/Vector" pv { upoint uvector ufloat } signature "3D Uniform Point/Point" pp { upoint upoint ufloat } signature "3D Uniform Point/Normal" pn { upoint unormal ufloat } signature "3D Uniform Normal/Vector" nv { unormal uvector ufloat } signature "3D Uniform Normal/Point" np { unormal upoint ufloat } signature "3D Uniform Normal/Normal" nn { unormal unormal ufloat } signature "3D Uniform Color" uc { ucolor ucolor ufloat } } INDX DialogScriptLt/* * PROPRIETARY INFORMATION. This software is proprietary to * Side Effects Software Inc., and is not to be reproduced, * transmitted, or disclosed in any way without written permission. * * Produced by: * Side Effects Software Inc * 477 Richmond Street West * Toronto, Ontario * Canada M5V 3E7 * 416-504-9876 * */ #include { name "vecgetcompon" script "vecgetcompon" label "vecgetcompon" outercode { INCLUDE_VOPLIB } code { "$fval = vop_getcomp($vec, $part);" } input vector vec "Input Vector" output float fval "Output Component" signature "3D Vector" default { } signature "3D Point" p { point float } signature "3D Normal" n { normal float } signature "3D Color" c { color float } signature "4D Values" v4 { vector4 float } signature "3D Uniform Vector" uv { uvector float } signature "3D Uniform Point" up { upoint float } signature "3D Uniform Normal" un { unormal float } signature "3D Uniform Color" uc { ucolor float } parm { name part label "Vector Component" type int menu { 0 "Component 1" 1 "Component 2" 2 "Component 3" } default { 0 } } VOP_VEC_PARM(vec, "3D Vector Input", 0, 0, 0) VOP_VEC_PARM(vec_p, "3D Point Input", 0, 0, 0) VOP_VEC_PARM(vec_n, "3D Normal Input", 0, 0, 0) VOP_VEC_PARM(vec_c, "3D Color Input", 0, 0, 0) VOP_VEC4_PARM(vec_v4, "4D Values Input", 0, 0, 0, 0) VOP_VEC_PARM(vec_uv, "3D Uniform Vector Input", 0, 0, 0) VOP_VEC_PARM(vec_up, "3D Uniform Point Input", 0, 0, 0) VOP_VEC_PARM(vec_un, "3D Uniform Normal Input", 0, 0, 0) VOP_VEC_PARM(vec_uc, "3D Uniform Color Input", 0, 0, 0) } INDXContents9Ms DialogScript9L