[Sidefx-houdini-list] Skin SOP Flipping

Andrew D Lyons tstexture at gmail.com
Fri Jan 6 20:48:01 EST 2006


On 06/01/06, Rick Walia <rickw at the-mill.com> wrote:
>
> Rick Walia wrote:
> I have uploaded the sample file here:
>
> http://www.yourfilelink.com/get.php?fid=1038
>
>
Try cut and pasting this into a textport and replace locked input file sop
with original:




# Automatically generated script: Friday January 06, 17:45
\set noalias = 1
set saved_path = `execute("oppwf")`
opcf /obj

# Node Oluchi_PolyFilet_Cardinal_alt
opadd -n geo Oluchi_PolyFilet_Cardinal_alt
oplocate -x 4.0257 -y 2.67765 Oluchi_PolyFilet_Cardinal_alt
opset -S on Oluchi_PolyFilet_Cardinal_alt
opparm Oluchi_PolyFilet_Cardinal_alt t ( -4 0 0 ) use_dcolor ( off )
chautoscope Oluchi_PolyFilet_Cardinal_alt +tx +ty +tz +rx +ry +rz +sx +sy
+sz +px +py +pz +scale
opset -d on -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C on -p off -e on -b off -x off Oluchi_PolyFilet_Cardinal_alt
opcf Oluchi_PolyFilet_Cardinal_alt

# Network Box Sources
nbadd Sources
nblocate -x 10.028 -y 16.4812 Sources
nbsize -w 8.9478 -h 4.70083 Sources
nbset  -m off -p off Sources
nbcolor -c 0.8 0.6 0 Sources

# Network Box Prep_Curve
nbadd Prep_Curve
nblocate -x 12.5579 -y 11.2113 Prep_Curve
nbsize -w 1.68823 -h 4.82814 Prep_Curve
nbset  -m off -p off Prep_Curve
nbcolor -c 0.4 1 1 Prep_Curve

# Node cookieExtract_Intersection
opadd -n cookie cookieExtract_Intersection
oplocate -x 12.7954 -y 14.8694 cookieExtract_Intersection
opparm cookieExtract_Intersection stdswitcher ( 1 1 ) dojitter ( on )
jitteramount ( 0.00299743 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off cookieExtract_Intersection
nbop Prep_Curve add cookieExtract_Intersection

# Node Source1_Out
opadd -n null Source1_Out
oplocate -x 10.5366 -y 16.7295 Source1_Out
opcolor -c 0.84 0.84 0.84 Source1_Out
opset -d off -r off -h off -f off -y off -t on -l off -s off -u off -c off
-C off -p off -e on -b off Source1_Out
nbop Sources add Source1_Out

# Node Source2_Out
opadd -n null Source2_Out
oplocate -x 15.9279 -y 16.8325 Source2_Out
opcolor -c 0.84 0.84 0.84 Source2_Out
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off Source2_Out
nbop Sources add Source2_Out

# Node merge1
opadd -n merge merge1
oplocate -x 13.0421 -y 5.32882 merge1
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C on -p off -e on -b off merge1

# Node skin_Broken
opadd -n skin skin_Broken
oplocate -x 13.0421 -y 4.28005 skin_Broken
opparm skin_Broken keepshape ( on )
opset -d on -r on -h off -f off -y off -t off -l off -s off -u off -c off -C
off -p off -e on -b off skin_Broken

# Node Anim_TY
opadd -n xform Anim_TY
oplocate -x 10.4166 -y 18.7491 Anim_TY
chblockbegin
chadd -t 5.63333 8.96667 Anim_TY ty
chkey -t 5.63333 -v 1.12671 -m 0 -A 1.11111 -F 'linear()' Anim_TY/ty
chkey -t 8.96667 -v 3.44671 -m 0 -a 1.11111 -A 0.333333 -T a  -F 'cubic()'
Anim_TY/ty
chblockend
opparm Anim_TY t ( 9.08176 ty 1.42479 ) r ( 0 -107.839 0 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off Anim_TY
nbop Sources add Anim_TY

# Node Colission_GRID
opadd -n grid Colission_GRID
oplocate -x 15.8119 -y 20.012 Colission_GRID
chblockbegin
chadd -t 4.96667 4.96667 Colission_GRID cols
chkey -t 4.96667 -v 10 -m 0 -A 0 -F 'ch("rows")' Colission_GRID/cols
chblockend
opparm Colission_GRID rows ( 15 ) cols ( cols )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off Colission_GRID
nbop Sources add Colission_GRID

# Node Put_Into_Place
opadd -n xform Put_Into_Place
oplocate -x 15.8109 -y 18.5619 Put_Into_Place
opparm Put_Into_Place t ( 0 0 22.0213 ) s ( 22.2259 4.41036 16.8239 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off Put_Into_Place
nbop Sources add Put_Into_Place

# Node BakedFile
opadd -n null BakedFile
oplocate -x 10.4229 -y 19.8126 BakedFile
opset -d off -r off -h off -f off -y off -t off -l hard -s off -u off -c off
-C off -p off -e on -b off BakedFile
nbop Sources add BakedFile

# Node resample2
opadd -n resample resample2
oplocate -x 12.7961 -y 13.7013 resample2
opparm resample2 dolength ( off ) dosegs ( on ) segs ( 500 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off resample2
nbop Prep_Curve add resample2

# Node curve_1
opadd -n peak curve_1
oplocate -x 9.19545 -y 7.84413 curve_1
opparm curve_1 dist ( 0.08 ) updatenmls ( off )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off curve_1

# Node smooth_N_to_stop_pinching
opadd -n smooth smooth_N_to_stop_pinching
oplocate -x 12.7793 -y 12.6113 smooth_N_to_stop_pinching
opparm smooth_N_to_stop_pinching applyto ( otherattrib ) attribname ( N )
frequency ( 1e-04 ) iterations ( 600 )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off smooth_N_to_stop_pinching
nbop Prep_Curve add smooth_N_to_stop_pinching

# Node zero_NY
opadd -n point zero_NY
oplocate -x 12.7579 -y 11.4113 zero_NY
chblockbegin
chadd -t 4.96667 4.96667 zero_NY tx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TX' zero_NY/tx
chadd -t 4.96667 4.96667 zero_NY ty
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TY' zero_NY/ty
chadd -t 4.96667 4.96667 zero_NY tz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TZ' zero_NY/tz
chadd -t 4.96667 4.96667 zero_NY weight
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$WEIGHT' zero_NY/weight
chadd -t 4.96667 4.96667 zero_NY diffr
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CR' zero_NY/diffr
chadd -t 4.96667 4.96667 zero_NY diffg
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CG' zero_NY/diffg
chadd -t 4.96667 4.96667 zero_NY diffb
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CB' zero_NY/diffb
chadd -t 4.96667 4.96667 zero_NY alpha
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CA' zero_NY/alpha
chadd -t 4.96667 4.96667 zero_NY nx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$NX' zero_NY/nx
chadd -t 4.96667 4.96667 zero_NY nz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$NZ' zero_NY/nz
chadd -t 4.96667 4.96667 zero_NY mapu
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPU' zero_NY/mapu
chadd -t 4.96667 4.96667 zero_NY mapv
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPV' zero_NY/mapv
chadd -t 4.96667 4.96667 zero_NY mapw
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPW' zero_NY/mapw
chadd -t 4.96667 4.96667 zero_NY tension
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$TENSION' zero_NY/tension
chadd -t 4.96667 4.96667 zero_NY springk
chkey -t 4.96667 -v 30 -m 0 -A 0 -F '$SPRINGK' zero_NY/springk
chadd -t 4.96667 4.96667 zero_NY vx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VX' zero_NY/vx
chadd -t 4.96667 4.96667 zero_NY vy
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VY' zero_NY/vy
chadd -t 4.96667 4.96667 zero_NY vz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VZ' zero_NY/vz
chadd -t 4.96667 4.96667 zero_NY upx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPX' zero_NY/upx
chadd -t 4.96667 4.96667 zero_NY upy
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPY' zero_NY/upy
chadd -t 4.96667 4.96667 zero_NY upz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPZ' zero_NY/upz
chadd -t 4.96667 4.96667 zero_NY pscale
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$PSCALE' zero_NY/pscale
chblockend
opparm zero_NY donml ( on ) n ( nx 0 nz )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off zero_NY
nbop Prep_Curve add zero_NY

# Node curve_2
opadd -n peak curve_2
oplocate -x 11.8566 -y 7.8273 curve_2
opparm curve_2 dist ( 0.03 ) updatenmls ( off )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off curve_2

# Node curve_3
opadd -n peak curve_3
oplocate -x 15.1198 -y 7.76906 curve_3
opparm curve_3 dist ( 0.01 ) updatenmls ( off )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off curve_3

# Node attribtransfer1
opadd -n attribtransfer attribtransfer1
oplocate -x 16.1029 -y 10.1128 attribtransfer1
opparm attribtransfer1 cardswitcher ( 1 1 ) primitiveattribs ( off )
pointattriblist ( N )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off attribtransfer1

# Node point1
opadd -n point point1
oplocate -x 15.1415 -y 9.03549 point1
chblockbegin
chadd -t 4.96667 4.96667 point1 tx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TX' point1/tx
chadd -t 4.96667 4.96667 point1 ty
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TY' point1/ty
chadd -t 4.96667 4.96667 point1 tz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TZ' point1/tz
chadd -t 4.96667 4.96667 point1 weight
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$WEIGHT' point1/weight
chadd -t 4.96667 4.96667 point1 diffr
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CR' point1/diffr
chadd -t 4.96667 4.96667 point1 diffg
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CG' point1/diffg
chadd -t 4.96667 4.96667 point1 diffb
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CB' point1/diffb
chadd -t 4.96667 4.96667 point1 nx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$NX' point1/nx
chadd -t 4.96667 4.96667 point1 ny
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$NY2 * ch("./alpha")' point1/ny
chadd -t 4.96667 4.96667 point1 nz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$NZ' point1/nz
chadd -t 4.96667 4.96667 point1 mapu
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPU' point1/mapu
chadd -t 4.96667 4.96667 point1 mapv
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPV' point1/mapv
chadd -t 4.96667 4.96667 point1 mapw
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPW' point1/mapw
chadd -t 4.96667 4.96667 point1 tension
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$TENSION' point1/tension
chadd -t 4.96667 4.96667 point1 springk
chkey -t 4.96667 -v 30 -m 0 -A 0 -F '$SPRINGK' point1/springk
chadd -t 4.96667 4.96667 point1 vx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VX' point1/vx
chadd -t 4.96667 4.96667 point1 vy
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VY' point1/vy
chadd -t 4.96667 4.96667 point1 vz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VZ' point1/vz
chadd -t 4.96667 4.96667 point1 upx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPX' point1/upx
chadd -t 4.96667 4.96667 point1 upy
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPY' point1/upy
chadd -t 4.96667 4.96667 point1 upz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPZ' point1/upz
chadd -t 4.96667 4.96667 point1 pscale
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$PSCALE' point1/pscale
chblockend
opparm point1 doalpha ( on ) alpha ( 1.8 ) donml ( on ) n ( nx ny nz )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off point1

# Node curve_4
opadd -n peak curve_4
oplocate -x 19.1286 -y 7.62903 curve_4
opparm curve_4 dist ( 0.004 ) updatenmls ( off )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off curve_4

# Node attribtransfer2
opadd -n attribtransfer attribtransfer2
oplocate -x 20.1117 -y 9.97277 attribtransfer2
opparm attribtransfer2 cardswitcher ( 1 1 ) primitiveattribs ( off )
pointattriblist ( N )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off attribtransfer2

# Node point2
opadd -n point point2
oplocate -x 19.1503 -y 8.89546 point2
chblockbegin
chadd -t 4.96667 4.96667 point2 tx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TX' point2/tx
chadd -t 4.96667 4.96667 point2 ty
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TY' point2/ty
chadd -t 4.96667 4.96667 point2 tz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$TZ' point2/tz
chadd -t 4.96667 4.96667 point2 weight
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$WEIGHT' point2/weight
chadd -t 4.96667 4.96667 point2 diffr
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CR' point2/diffr
chadd -t 4.96667 4.96667 point2 diffg
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CG' point2/diffg
chadd -t 4.96667 4.96667 point2 diffb
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$CB' point2/diffb
chadd -t 4.96667 4.96667 point2 nx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '-$NX' point2/nx
chadd -t 4.96667 4.96667 point2 ny
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$NY2 * ch("./alpha")' point2/ny
chadd -t 4.96667 4.96667 point2 nz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '-$NZ' point2/nz
chadd -t 4.96667 4.96667 point2 mapu
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPU' point2/mapu
chadd -t 4.96667 4.96667 point2 mapv
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPV' point2/mapv
chadd -t 4.96667 4.96667 point2 mapw
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$MAPW' point2/mapw
chadd -t 4.96667 4.96667 point2 tension
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$TENSION' point2/tension
chadd -t 4.96667 4.96667 point2 springk
chkey -t 4.96667 -v 30 -m 0 -A 0 -F '$SPRINGK' point2/springk
chadd -t 4.96667 4.96667 point2 vx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VX' point2/vx
chadd -t 4.96667 4.96667 point2 vy
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VY' point2/vy
chadd -t 4.96667 4.96667 point2 vz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$VZ' point2/vz
chadd -t 4.96667 4.96667 point2 upx
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPX' point2/upx
chadd -t 4.96667 4.96667 point2 upy
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPY' point2/upy
chadd -t 4.96667 4.96667 point2 upz
chkey -t 4.96667 -v 0 -m 0 -A 0 -F '$UPZ' point2/upz
chadd -t 4.96667 4.96667 point2 pscale
chkey -t 4.96667 -v 1 -m 0 -A 0 -F '$PSCALE' point2/pscale
chblockend
opparm point2 doalpha ( on ) alpha ( 10.046 ) donml ( on ) n ( nx ny nz )
opset -d off -r off -h off -f off -y off -t off -l off -s off -u off -c off
-C off -p off -e on -b off point2
oporder -e cookieExtract_Intersection Source1_Out Source2_Out merge1
skin_Broken Anim_TY Colission_GRID Put_Into_Place BakedFile resample2
curve_1 smooth_N_to_stop_pinching zero_NY curve_2 curve_3 attribtransfer1
point1 curve_4 attribtransfer2 point2
opcf ..

opcf /obj
opcf Oluchi_PolyFilet_Cardinal_alt
opwire -n Source1_Out -0 cookieExtract_Intersection
opwire -n Source2_Out -1 cookieExtract_Intersection
opwire -n Anim_TY -0 Source1_Out
opwire -n Put_Into_Place -0 Source2_Out
opwire -n curve_1 -0 merge1
opwire -n curve_2 -1 merge1
opwire -n curve_3 -2 merge1
opwire -n curve_4 -3 merge1
opwire -n merge1 -0 skin_Broken
opwire -n BakedFile -0 Anim_TY
opwire -n Colission_GRID -0 Put_Into_Place
opwire -n cookieExtract_Intersection -0 resample2
opwire -n zero_NY -0 curve_1
opwire -n resample2 -0 smooth_N_to_stop_pinching
opwire -n smooth_N_to_stop_pinching -0 zero_NY
opwire -n zero_NY -0 curve_2
opwire -n point1 -0 curve_3
opwire -n zero_NY -0 attribtransfer1
opwire -n Source2_Out -1 attribtransfer1
opwire -n zero_NY -0 point1
opwire -n attribtransfer1 -1 point1
opwire -n point2 -0 curve_4
opwire -n zero_NY -0 attribtransfer2
opwire -n Source2_Out -1 attribtransfer2
opwire -n zero_NY -0 point2
opwire -n attribtransfer2 -1 point2
opcf ..
opcf $saved_path



--
=======================================
Andrew D Lyons | Digital Artist | http://www.tstex.com
=======================================



More information about the Sidefx-houdini-list mailing list