//Maya ASCII 2009 scene //Name: ParticleFluidInteraction.ma //Last modified: Mon, Feb 02, 2009 11:53:52 AM //Codeset: 1252 requires maya "2009"; currentUnit -l centimeter -a degree -t film; fileInfo "application" "maya"; fileInfo "product" "Maya Unlimited 2009"; fileInfo "version" "2009P03"; fileInfo "cutIdentifier" "200902020025-744193"; fileInfo "osv" "Microsoft Windows XP Service Pack 2 (Build 2600)\n"; createNode transform -s -n "persp"; setAttr ".v" no; setAttr ".t" -type "double3" -14.409255084392148 3.3072606875255963 16.835292223243943 ; setAttr ".r" -type "double3" -6.3383527295483661 -46.599999999990089 5.7862983816632589e-016 ; createNode camera -s -n "perspShape" -p "persp"; setAttr -k off ".v" no; setAttr ".fl" 34.999999999999993; setAttr ".coi" 18.734569254907914; setAttr ".imn" -type "string" "persp"; setAttr ".den" -type "string" "persp_depth"; setAttr ".man" -type "string" "persp_mask"; setAttr ".hc" -type "string" "viewSet -p %camera"; createNode transform -s -n "top"; setAttr ".v" no; setAttr ".t" -type "double3" 0 100.1 0 ; setAttr ".r" -type "double3" -89.999999999999986 0 0 ; createNode camera -s -n "topShape" -p "top"; setAttr -k off ".v" no; setAttr ".rnd" no; setAttr ".coi" 100.1; setAttr ".ow" 30; setAttr ".imn" -type "string" "top"; setAttr ".den" -type "string" "top_depth"; setAttr ".man" -type "string" "top_mask"; setAttr ".hc" -type "string" "viewSet -t %camera"; setAttr ".o" yes; createNode transform -s -n "front"; setAttr ".v" no; setAttr ".t" -type "double3" 0 0 100.1 ; createNode camera -s -n "frontShape" -p "front"; setAttr -k off ".v" no; setAttr ".rnd" no; setAttr ".coi" 100.1; setAttr ".ow" 30; setAttr ".imn" -type "string" "front"; setAttr ".den" -type "string" "front_depth"; setAttr ".man" -type "string" "front_mask"; setAttr ".hc" -type "string" "viewSet -f %camera"; setAttr ".o" yes; createNode transform -s -n "side"; setAttr ".v" no; setAttr ".t" -type "double3" 100.1 0 0 ; setAttr ".r" -type "double3" 0 89.999999999999986 0 ; createNode camera -s -n "sideShape" -p "side"; setAttr -k off ".v" no; setAttr ".rnd" no; setAttr ".coi" 100.1; setAttr ".ow" 30; setAttr ".imn" -type "string" "side"; setAttr ".den" -type "string" "side_depth"; setAttr ".man" -type "string" "side_mask"; setAttr ".hc" -type "string" "viewSet -s %camera"; setAttr ".o" yes; createNode pointEmitter -n "emitter1"; setAttr ".t" -type "double3" 0.14808004594573365 1.147605993419774 11.571804008925463 ; setAttr ".r" -type "double3" 87.120266854508245 -0.18805248208717937 5.5283392933322455 ; setAttr ".s" -type "double3" 1 0.22242138346822557 1 ; setAttr ".emt" 4; setAttr ".rat" 500; setAttr ".sro" no; setAttr -l on ".urpp"; setAttr ".spd" 2.314; setAttr ".afc" 0; setAttr ".alx" -10; createNode transform -n "nParticle1"; createNode nParticle -n "nParticleShape1" -p "nParticle1"; addAttr -ci true -sn "lifespanPP" -ln "lifespanPP" -bt "life" -dt "doubleArray"; addAttr -ci true -h true -sn "lifespanPP0" -ln "lifespanPP0" -bt "life" -dt "doubleArray"; addAttr -ci true -sn "lifespan" -ln "lifespan" -bt "life" -at "double"; addAttr -ci true -sn "rgbPP" -ln "rgbPP" -dt "vectorArray"; addAttr -ci true -h true -sn "rgbPP0" -ln "rgbPP0" -dt "vectorArray"; addAttr -ci true -sn "opacityPP" -ln "opacityPP" -dt "doubleArray"; addAttr -ci true -h true -sn "opacityPP0" -ln "opacityPP0" -dt "doubleArray"; addAttr -ci true -sn "radiusPP" -ln "radiusPP" -dt "doubleArray"; addAttr -ci true -h true -sn "radiusPP0" -ln "radiusPP0" -dt "doubleArray"; addAttr -is true -ci true -sn "betterIllumination" -ln "betterIllumination" -min 0 -max 1 -at "bool"; addAttr -is true -ci true -sn "surfaceShading" -ln "surfaceShading" -min 0 -max 1 -at "float"; addAttr -ci true -h true -sn "followFluid0" -ln "followFluid0" -dt "doubleArray"; addAttr -ci true -sn "followFluid" -ln "followFluid" -dt "doubleArray"; setAttr -k off ".v"; setAttr ".gf" -type "Int32Array" 0 ; setAttr ".pos0" -type "vectorArray" 0 ; setAttr ".vel0" -type "vectorArray" 0 ; setAttr ".acc0" -type "vectorArray" 0 ; setAttr ".mas0" -type "doubleArray" 0 ; setAttr ".id0" -type "doubleArray" 0 ; setAttr ".nid" 666; setAttr ".bt0" -type "doubleArray" 0 ; setAttr ".ag0" -type "doubleArray" 0 ; setAttr ".lfm" 1; setAttr -s 2 ".xo"; setAttr ".irbx" -type "string" "float $p[3] = .I[0];\r\nint $ind[3] = `fluidVoxelInfo -v $p[0] $p[1] $p[2] fluidShape1`;\r\nint $inside = `fluidVoxelInfo -inBounds $ind[0] $ind[1] $ind[2] fluidShape1`;\r\n\r\nif( $inside ){\r\n\tfloat $conv = 1;\r\n\tfloat $rate = 0.2;\r\n\tfloat $v2[3] = `getFluidAttr -at \"velocity\" -xi $ind[0] -yi $ind[1] -zi $ind[2] fluidShape1`;\r\n\r\n\tif( .O[0] < 1 ){\r\n\r\n\t\tfloat $f = .O[0];\r\n\t\tfloat $mf = 1-$f;\r\n\t\tfloat $v[3] = .O[1] /$conv;\r\n\t\t$v[0]= $v2[0] * $f + $v[0] * $mf;\r\n\t\t$v[1]= $v2[1] * $f + $v[1] * $mf;\r\n\t\t$v[2]= $v2[2] * $f + $v[2] * $mf;\r\n\t\tvector $nv = $v;\r\n\t\t.O[1] = $nv * $conv;\r\n\t\tsetFluidAttr -at \"velocity\" -xi $ind[0] -yi $ind[1] -zi $ind[2] -vv $v[0] $v[1] $v[2] fluidShape1;\r\n\t\t.O[0] += $rate;\r\n\t} else {\r\n\t\tvector $nv = $v2;\r\n\t\t.O[1] = $nv * $conv;\r\n\t}\r\n} else {\r\n\t.O[0] = 0;\r\n}"; setAttr ".irax" -type "string" ""; setAttr ".icx" -type "string" ".O[0] =0"; setAttr ".chw" 1000; setAttr ".prt" 8; setAttr ".cofl" 1; setAttr ".cold" no; setAttr ".scld" no; setAttr -s 2 ".fsc[0:1]" 0 1 1 1 0 1; setAttr -s 2 ".pfdo[0:1]" 0 1 1 1 0 1; setAttr ".igsg" yes; setAttr ".drg" 0; setAttr ".ra" 0.33039999008178711; setAttr ".rdc[0]" 0 1 1; setAttr ".rci" 1; setAttr ".mssc[0]" 0 1 1; setAttr ".pfsc[0]" 0 1 1; setAttr ".op" 0.81818; setAttr -s 3 ".opc[0:2]" 0 1 1 1 0 1 0.85039371 1 1; setAttr ".oci" 2; setAttr -s 2 ".cl"; setAttr ".cl[0].clp" 0; setAttr ".cl[0].clc" -type "float3" 1 0 0.090166569 ; setAttr ".cl[0].cli" 1; setAttr ".cl[1].clp" 1; setAttr ".cl[1].clc" -type "float3" 0 0.5 1 ; setAttr ".cl[1].cli" 1; setAttr ".coi" 2; setAttr ".inca[0].incap" 0; setAttr ".inca[0].incac" -type "float3" 0 0 0 ; setAttr ".inca[0].incai" 1; setAttr ".lifespanPP0" -type "doubleArray" 0 ; setAttr -k on ".lifespan" 3; setAttr ".rgbPP0" -type "vectorArray" 0 ; setAttr ".opacityPP0" -type "doubleArray" 0 ; setAttr ".radiusPP0" -type "doubleArray" 0 ; setAttr -k on ".betterIllumination"; setAttr -k on ".surfaceShading"; setAttr ".followFluid0" -type "doubleArray" 0 ; createNode transform -n "fluid1"; setAttr ".t" -type "double3" -0.066265006322856479 1.2711122488511652 2.588852261495254 ; createNode fluidShape -n "fluidShape1" -p "fluid1"; setAttr -k off ".v"; setAttr ".rt" 1; setAttr ".iss" yes; setAttr ".covm[0]" 0 1 1; setAttr ".cdvm[0]" 0 1 1; setAttr ".rw" 30; setAttr ".rh" 30; setAttr ".rd" 30; setAttr ".dw" 10; setAttr ".dh" 10; setAttr ".dd" 10; setAttr ".sli" 1; setAttr ".vld" yes; setAttr ".vdl" 0.90912; setAttr ".vds" 3; setAttr ".ots" 1; setAttr ".hds" 3; setAttr ".dsb" 0; setAttr ".ss" yes; setAttr ".cl[0].clp" 0; setAttr ".cl[0].clc" -type "float3" 1 1 1 ; setAttr ".cl[0].cli" 1; setAttr -s 2 ".opa[0:1]" 0 0 1 1 1 1; setAttr ".oib" 0.40540000796318054; setAttr -s 3 ".i"; setAttr ".i[0].ip" 0; setAttr ".i[0].ic" -type "float3" 0 0 0 ; setAttr ".i[0].ii" 1; setAttr ".i[1].ip" 0.80000001192092896; setAttr ".i[1].ic" -type "float3" 0.89999998 0.2 0 ; setAttr ".i[1].ii" 1; setAttr ".i[2].ip" 1; setAttr ".i[2].ic" -type "float3" 1.5 1 0 ; setAttr ".i[2].ii" 1; setAttr ".env[0].envp" 0; setAttr ".env[0].envc" -type "float3" 0 0 0 ; setAttr ".env[0].envi" 1; setAttr ".dos" 2; createNode fluidEmitter -n "fluidEmitter1" -p "fluid1"; setAttr ".t" -type "double3" -0.84442298976453856 -2.1289915342972807 0.18134708504955155 ; setAttr -k off ".rat"; setAttr -k off ".sro"; setAttr -l on -k off ".urpp"; setAttr -k off ".npuv"; setAttr ".max" 1; setAttr -k off ".dx"; setAttr -k off ".dy"; setAttr -k off ".dz"; setAttr -k off ".spr"; setAttr -k off ".spd"; setAttr -k off ".srnd"; setAttr -k off ".tspd"; setAttr -k off ".nspd"; setAttr -k off ".afc"; setAttr -k off ".afa"; setAttr -k off ".alx"; setAttr -k off ".arx"; setAttr -k off ".rnd"; setAttr -k off ".drs"; setAttr -k off ".ssz"; setAttr -k off ".dss"; setAttr ".fhe" 1; setAttr ".ffe" 1; createNode transform -n "ParticleFluidCam"; setAttr ".t" -type "double3" -13.521376627182107 4.3505525130050211 18.402434269094524 ; setAttr ".r" -type "double3" -9.9383527296015419 -40.199999999999704 0 ; createNode camera -n "ParticleFluidCamShape" -p "ParticleFluidCam"; setAttr -k off ".v"; setAttr ".rnd" no; setAttr ".fl" 34.999999999999993; setAttr ".coi" 20.160273188171601; setAttr ".imn" -type "string" "persp1"; setAttr ".den" -type "string" "persp1_depth"; setAttr ".man" -type "string" "persp1_mask"; setAttr ".hc" -type "string" "viewSet -p %camera"; createNode lightLinker -n "lightLinker1"; setAttr -s 4 ".lnk"; setAttr -s 4 ".slnk"; createNode displayLayerManager -n "layerManager"; createNode displayLayer -n "defaultLayer"; createNode renderLayerManager -n "renderLayerManager"; createNode renderLayer -n "defaultRenderLayer"; setAttr ".g" yes; createNode nucleus -n "nucleus1"; createNode shadingEngine -n "nParticleCloudSE"; setAttr ".ihi" 0; setAttr ".ro" yes; createNode materialInfo -n "materialInfo1"; createNode particleSamplerInfo -n "particleSamplerInfo1"; createNode blinn -n "npCloudBlinn"; createNode particleCloud -n "npCloudVolume"; createNode shadingEngine -n "fluidShape1SG"; setAttr ".ihi" 0; setAttr ".ro" yes; createNode materialInfo -n "materialInfo2"; createNode script -n "sceneConfigurationScriptNode"; setAttr ".b" -type "string" "playbackOptions -min 1 -max 1000 -ast 1 -aet 1000 "; setAttr ".st" 6; select -ne :time1; setAttr ".o" 33; select -ne :renderPartition; setAttr -s 4 ".st"; select -ne :renderGlobalsList1; select -ne :defaultShaderList1; setAttr -s 5 ".s"; select -ne :postProcessList1; setAttr -s 2 ".p"; select -ne :lightList1; select -ne :initialShadingGroup; setAttr -k on ".nds"; setAttr ".ro" yes; select -ne :initialParticleSE; setAttr ".ro" yes; select -ne :hardwareRenderGlobals; setAttr ".ctrs" 256; setAttr ".btrs" 512; select -ne :defaultHardwareRenderGlobals; setAttr ".fn" -type "string" "im"; setAttr ".res" -type "string" "ntsc_4d 646 485 1.333"; connectAttr ":time1.o" "emitter1.ct"; connectAttr "nParticleShape1.ifl" "emitter1.full[0]"; connectAttr "nParticleShape1.tss" "emitter1.dt[0]"; connectAttr "nParticleShape1.inh" "emitter1.inh[0]"; connectAttr "nParticleShape1.stt" "emitter1.stt[0]"; connectAttr "nParticleShape1.sd[0]" "emitter1.sd[0]"; connectAttr ":time1.o" "nParticleShape1.cti"; connectAttr "nucleus1.noao[0]" "nParticleShape1.nxst"; connectAttr "nucleus1.stf" "nParticleShape1.stf"; connectAttr "emitter1.ot[0]" "nParticleShape1.npt[0]"; connectAttr "nParticleShape1.incr" "nParticleShape1.rgbPP"; connectAttr "nParticleShape1.inor" "nParticleShape1.opacityPP"; connectAttr "nParticleShape1.inrr" "nParticleShape1.radiusPP"; connectAttr "nParticleShape1.pos" "nParticleShape1.xi[0]"; connectAttr "nParticleShape1.xo[1]" "nParticleShape1.vel"; connectAttr "nParticleShape1.xo[0]" "nParticleShape1.followFluid"; connectAttr ":time1.o" "fluidShape1.cti"; connectAttr "fluidEmitter1.ef" "fluidShape1.eml[0].emfr"; connectAttr "fluidEmitter1.efc" "fluidShape1.fce[0]"; connectAttr ":time1.o" "fluidEmitter1.ct"; connectAttr "fluidShape1.ifl" "fluidEmitter1.full[0]"; connectAttr "fluidShape1.ots" "fluidEmitter1.dt[0]"; connectAttr "fluidShape1.inh" "fluidEmitter1.inh[0]"; connectAttr "fluidShape1.sti" "fluidEmitter1.stt[0]"; connectAttr "fluidShape1.sd[0]" "fluidEmitter1.sd[0]"; connectAttr ":defaultLightSet.msg" "lightLinker1.lnk[0].llnk"; connectAttr ":initialShadingGroup.msg" "lightLinker1.lnk[0].olnk"; connectAttr ":defaultLightSet.msg" "lightLinker1.lnk[1].llnk"; connectAttr ":initialParticleSE.msg" "lightLinker1.lnk[1].olnk"; connectAttr ":defaultLightSet.msg" "lightLinker1.lnk[2].llnk"; connectAttr "nParticleCloudSE.msg" "lightLinker1.lnk[2].olnk"; connectAttr ":defaultLightSet.msg" "lightLinker1.lnk[3].llnk"; connectAttr "fluidShape1SG.msg" "lightLinker1.lnk[3].olnk"; connectAttr ":defaultLightSet.msg" "lightLinker1.slnk[0].sllk"; connectAttr ":initialShadingGroup.msg" "lightLinker1.slnk[0].solk"; connectAttr ":defaultLightSet.msg" "lightLinker1.slnk[1].sllk"; connectAttr ":initialParticleSE.msg" "lightLinker1.slnk[1].solk"; connectAttr ":defaultLightSet.msg" "lightLinker1.slnk[2].sllk"; connectAttr "nParticleCloudSE.msg" "lightLinker1.slnk[2].solk"; connectAttr ":defaultLightSet.msg" "lightLinker1.slnk[3].sllk"; connectAttr "fluidShape1SG.msg" "lightLinker1.slnk[3].solk"; connectAttr "layerManager.dli[0]" "defaultLayer.id"; connectAttr "renderLayerManager.rlmi[0]" "defaultRenderLayer.rlid"; connectAttr ":time1.o" "nucleus1.cti"; connectAttr "nParticleShape1.cust" "nucleus1.niao[0]"; connectAttr "nParticleShape1.stst" "nucleus1.nias[0]"; connectAttr "npCloudBlinn.oc" "nParticleCloudSE.ss"; connectAttr "npCloudVolume.oi" "nParticleCloudSE.vs"; connectAttr "nParticleShape1.iog" "nParticleCloudSE.dsm" -na; connectAttr "nParticleCloudSE.msg" "materialInfo1.sg"; connectAttr "npCloudBlinn.msg" "materialInfo1.m"; connectAttr "particleSamplerInfo1.msg" "materialInfo1.t" -na; connectAttr "particleSamplerInfo1.oc" "npCloudBlinn.c"; connectAttr "particleSamplerInfo1.ot" "npCloudBlinn.it"; connectAttr "particleSamplerInfo1.oi" "npCloudBlinn.ic"; connectAttr "particleSamplerInfo1.ot" "npCloudVolume.t"; connectAttr "particleSamplerInfo1.oc" "npCloudVolume.c"; connectAttr "particleSamplerInfo1.oi" "npCloudVolume.i"; connectAttr "fluidShape1.ocl" "fluidShape1SG.vs"; connectAttr "fluidShape1.iog" "fluidShape1SG.dsm" -na; connectAttr "fluidShape1SG.msg" "materialInfo2.sg"; connectAttr "nParticleCloudSE.pa" ":renderPartition.st" -na; connectAttr "fluidShape1SG.pa" ":renderPartition.st" -na; connectAttr "npCloudBlinn.msg" ":defaultShaderList1.s" -na; connectAttr "npCloudVolume.msg" ":defaultShaderList1.s" -na; connectAttr "fluidShape1.msg" ":defaultShaderList1.s" -na; connectAttr "lightLinker1.msg" ":lightList1.ln" -na; // End of ParticleFluidInteraction.ma