1
1
##########################################################################
2
2
#
3
- # Copyright (c) 2013-2014 , Image Engine Design Inc. All rights reserved.
3
+ # Copyright (c) 2013-2015 , Image Engine Design Inc. All rights reserved.
4
4
#
5
5
# Redistribution and use in source and binary forms, with or without
6
6
# modification, are permitted provided that the following conditions are
@@ -1078,12 +1078,13 @@ def writeDualTaggedSCC( self ) :
1078
1078
1079
1079
def testParmTrickleDown ( self ) :
1080
1080
1081
- def checkParms ( node , geoType , tagFilter , attribFilter , shapeFilter , attribCopy ) :
1081
+ def checkParms ( node , geoType , tagFilter , attribFilter , shapeFilter , attribCopy , fullPathName ) :
1082
1082
1083
1083
self .assertEqual ( node .parm ( "geometryType" ).eval (), geoType )
1084
1084
self .assertEqual ( node .parm ( "attributeFilter" ).eval (), attribFilter )
1085
1085
self .assertEqual ( node .parm ( "attributeCopy" ).eval (), attribCopy )
1086
1086
self .assertEqual ( node .parm ( "shapeFilter" ).eval (), shapeFilter )
1087
+ self .assertEqual ( node .parm ( "fullPathName" ).eval (), fullPathName )
1087
1088
if isinstance ( node , hou .ObjNode ) :
1088
1089
self .assertEqual ( node .parm ( "expanded" ).eval (), True )
1089
1090
@@ -1093,40 +1094,44 @@ def checkParms( node, geoType, tagFilter, attribFilter, shapeFilter, attribCopy
1093
1094
self .assertEqual ( node .parm ( "tagFilter" ).eval (), "*" )
1094
1095
1095
1096
for child in node .children () :
1096
- checkParms ( child , geoType , tagFilter , attribFilter , shapeFilter , attribCopy )
1097
+ checkParms ( child , geoType , tagFilter , attribFilter , shapeFilter , attribCopy , fullPathName )
1097
1098
1098
1099
self .writeDualTaggedSCC ()
1099
1100
xform = self .xform ()
1100
1101
xform .parm ( "geometryType" ).set ( IECoreHoudini .SceneCacheNode .GeometryType .Cortex )
1101
1102
xform .parm ( "attributeFilter" ).set ( "*" )
1102
1103
xform .parm ( "shapeFilter" ).set ( "*" )
1104
+ xform .parm ( "fullPathName" ).set ( "fullPath" )
1103
1105
xform .parm ( "expand" ).pressButton ()
1104
- checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Cortex , "*" , "*" , "*" , "" )
1106
+ checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Cortex , "*" , "*" , "*" , "" , "fullPath" )
1105
1107
1106
1108
xform .parm ( "geometryType" ).set ( IECoreHoudini .SceneCacheNode .GeometryType .Houdini )
1107
1109
xform .parm ( "attributeFilter" ).set ( "P ^N" )
1108
1110
xform .parm ( "attributeCopy" ).set ( "P:Pref" )
1109
1111
xform .parm ( "shapeFilter" ).set ( "2 ^3" )
1112
+ xform .parm ( "fullPathName" ).set ( "customName" )
1110
1113
xform .parm ( "collapse" ).pressButton ()
1111
1114
xform .parm ( "expand" ).pressButton ()
1112
- checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Houdini , "*" , "P ^N" , "2 ^3" , "P:Pref" )
1115
+ checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Houdini , "*" , "P ^N" , "2 ^3" , "P:Pref" , "customName" )
1113
1116
1114
1117
xform .parm ( "hierarchy" ).set ( IECoreHoudini .SceneCacheNode .Hierarchy .Parenting )
1115
1118
xform .parm ( "geometryType" ).set ( IECoreHoudini .SceneCacheNode .GeometryType .Cortex )
1116
1119
xform .parm ( "attributeFilter" ).set ( "*" )
1117
1120
xform .parm ( "attributeCopy" ).set ( "" )
1118
1121
xform .parm ( "shapeFilter" ).set ( "*" )
1122
+ xform .parm ( "fullPathName" ).set ( "fullPath" )
1119
1123
xform .parm ( "collapse" ).pressButton ()
1120
1124
xform .parm ( "expand" ).pressButton ()
1121
- checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Cortex , "*" , "*" , "*" , "" )
1125
+ checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Cortex , "*" , "*" , "*" , "" , "fullPath" )
1122
1126
1123
1127
xform .parm ( "geometryType" ).set ( IECoreHoudini .SceneCacheNode .GeometryType .Houdini )
1124
1128
xform .parm ( "attributeFilter" ).set ( "P ^N" )
1125
1129
xform .parm ( "attributeCopy" ).set ( "v:vIn" )
1126
1130
xform .parm ( "shapeFilter" ).set ( "2 ^3" )
1131
+ xform .parm ( "fullPathName" ).set ( "customName" )
1127
1132
xform .parm ( "collapse" ).pressButton ()
1128
1133
xform .parm ( "expand" ).pressButton ()
1129
- checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Houdini , "*" , "P ^N" , "2 ^3" , "v:vIn" )
1134
+ checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Houdini , "*" , "P ^N" , "2 ^3" , "v:vIn" , "customName" )
1130
1135
1131
1136
# now check just pushing the parms
1132
1137
@@ -1137,8 +1142,9 @@ def checkParms( node, geoType, tagFilter, attribFilter, shapeFilter, attribCopy
1137
1142
xform .parm ( "attributeFilter" ).set ( "P ^N" )
1138
1143
xform .parm ( "attributeCopy" ).set ( "P:Pref" )
1139
1144
xform .parm ( "shapeFilter" ).set ( "2 ^3" )
1145
+ xform .parm ( "fullPathName" ).set ( "fullPath" )
1140
1146
xform .parm ( "push" ).pressButton ()
1141
- checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Cortex , "*" , "P ^N" , "2 ^3" , "P:Pref" )
1147
+ checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Cortex , "*" , "P ^N" , "2 ^3" , "P:Pref" , "fullPath" )
1142
1148
self .assertTrue ( hou .node ( xform .path ()+ "/1" ).isObjectDisplayed () )
1143
1149
self .assertTrue ( hou .node ( xform .path ()+ "/1/geo" ).isObjectDisplayed () )
1144
1150
self .assertTrue ( hou .node ( xform .path ()+ "/1/2" ).isObjectDisplayed () )
@@ -1153,9 +1159,10 @@ def checkParms( node, geoType, tagFilter, attribFilter, shapeFilter, attribCopy
1153
1159
xform .parm ( "attributeFilter" ).set ( "P N" )
1154
1160
xform .parm ( "attributeCopy" ).set ( "P:Pref v:vIn" )
1155
1161
xform .parm ( "shapeFilter" ).set ( "2 3" )
1162
+ xform .parm ( "fullPathName" ).set ( "customName" )
1156
1163
xform .parm ( "tagFilter" ).set ( "d" )
1157
1164
xform .parm ( "push" ).pressButton ()
1158
- checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Houdini , "d" , "P N" , "2 3" , "P:Pref v:vIn" )
1165
+ checkParms ( xform , IECoreHoudini .SceneCacheNode .GeometryType .Houdini , "d" , "P N" , "2 3" , "P:Pref v:vIn" , "customName" )
1159
1166
self .assertTrue ( hou .node ( xform .path ()+ "/1" ).isObjectDisplayed () )
1160
1167
self .assertTrue ( hou .node ( xform .path ()+ "/1/geo" ).isObjectDisplayed () )
1161
1168
self .assertFalse ( hou .node ( xform .path ()+ "/1/2" ).isObjectDisplayed () )
0 commit comments