Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.77 KB | None | 0 0
  1. Searching 1355 files for ".type().name() =="
  2.  
  3. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\assetauthortools.py:
  4. 138 for n in material_node_list:
  5. 139 print n
  6. 140: if ((n.type().name() == "vopmaterial") and (len(n.parm("baseColorMap").eval())>0) ):
  7. 141 basecolormap = n.parm("baseColorMap")
  8. 142 if ( len(basecolormap.keyframes())>0 ): # keyframed chs reference
  9. ...
  10. 220 return
  11. 221 for shader in material_node_list:
  12. 222: if (shader.type().name() == "vopmaterial"):
  13. 223 parentAsset = findParentAsset(node, shader)
  14. 224 if (parentAsset is not None):
  15.  
  16. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorig\isbodypart.py:
  17. 303
  18. 304 joints = [child for child in node.children()
  19. 305: if child.type().name() == 'null'
  20. 306 and child.name().startswith('joint')]
  21. 307
  22.  
  23. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorig\rigtoolutils.py:
  24. 34 # If the output is a null and this isn't the last output,
  25. 35 # continue
  26. 36: elif output.type().name() == 'null' \
  27. 37 and counter is not len(node.outputs()):
  28. 38 continue
  29.  
  30. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorigs\asset\geometry\autoRigsCaptureBuilder.py:
  31. 15 if node is None:
  32. 16 return (parent.createNode(node_type, node_name), True)
  33. 17: elif node.type().name() == node_type:
  34. 18 return (node, False)
  35. 19 else:
  36.  
  37. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorigs\ui\uiAssetContainer.py:
  38. 54
  39. 55 for child in nodechildren:
  40. 56: if child.type().name() == assettype and \
  41. 57 child != assetnode:
  42. 58 return True
  43.  
  44. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorigs\ui\uiNewAutorigDialog.py:
  45. 145
  46. 146 for child in nodechildren:
  47. 147: if child.type().name() == assettype:
  48. 148 return True
  49. 149
  50.  
  51. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorigs\utils\rigtoolutils\fkcontrols.py:
  52. 46 fkcontrol.setFirstInput(boneinputs[0])
  53. 47
  54. 48: if boneinputs[0].type().name() == 'bone':
  55. 49 fkinit = netparent.createNode('null', naming.createName(prefix, 'fkinitcontrol'))
  56. 50 fkinit.setFirstInput(bone)
  57.  
  58. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorigs\utils\rigtoolutils\iktwistuserinput.py:
  59. 55
  60. 56 def isOneBoneInput(inputlist):
  61. 57: return len(inputlist) == 1 and inputlist[0].type().name() == 'bone'
  62. 58
  63. 59 def isStartEndBoneInput(inputlist):
  64. 60 return len(inputlist) == 2 and \
  65. 61: inputlist[0].type().name() == 'bone' and \
  66. 62: inputlist[1].type().name() == 'bone'
  67. 63
  68. 64 def _checkUserInputListError(inputlist):
  69. ..
  70. 79 # First bone must not be parented to another bone
  71. 80 start_inputs = inputlist[0].inputs()
  72. 81: if start_inputs != () and start_inputs[0].type().name() == 'bone':
  73. 82 raise hou.Error("Parent of start bone is a bone. Please select a start bone that does not have a bone parent or does not have a parent")
  74. 83
  75.  
  76. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\autorigs\utils\rigutils.py:
  77. 205 count = 0
  78. 206 while True:
  79. 207: if curbone.type().name() == 'bone':
  80. 208 totallength += curbone.evalParm('length')
  81. 209 count += 1
  82.  
  83. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\charactertoolutils.py:
  84. 133 node = viewport.queryNodeAtPixel(int(x),int(y))
  85. 134 if node != None:
  86. 135: if node.type().category() == hou.objNodeTypeCategory() and node.type().name() == 'geo':
  87. 136 display = node.displayNode()
  88. 137 if display != None and display.type().category() == hou.sopNodeTypeCategory():
  89. ...
  90. 139 xform = node.worldTransform()
  91. 140
  92. 141: if node.type().category() == hou.sopNodeTypeCategory() and node.parent() != None and node.parent().type().name() == 'geo':
  93. 142 geo = node.geometry()
  94. 143 xform = node.parent().worldTransform()
  95.  
  96. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\choptoolutils.py:
  97. 21 p = n.parent();
  98. 22 if p:
  99. 23: if p.type().name() == "chopnet":
  100. 24 rate = p.parm('chopnet_rate')
  101. 25 if rate:
  102. ..
  103. 33 """
  104. 34 if n:
  105. 35: if n.type().name() == "chopnet":
  106. 36 rate = n.parm('chopnet_rate')
  107. 37 if rate:
  108. ..
  109. 493 isolate = scopeTracks(chop, tracks, True, name_prefix)
  110. 494 # create an export chop for it if needed
  111. 495: if isolate.type().name() == 'export' \
  112. 496 and isolate.creatorState() == 'disable':
  113. 497 export = isolate
  114.  
  115. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\crowdstoolutils.py:
  116. 21 crowdsource_object = None
  117. 22 for n in root.allSubChildren():
  118. 23: if n.type().name() == "crowdsource::3.0" and n.type().category().name() == "Sop":
  119. 24 crowdsource_object = n.parent()
  120. 25 merge_sop = hou.node(crowdsource_object.path() + "/merge_crowdsources")
  121.  
  122. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\dopparticlefluidtoolutils.py:
  123. 887
  124. 888 slicenode = dopnet.createNode(slicetype)
  125. 889: if parentnode.type().name() == 'sliceplane':
  126. 890 parentnode.setNextInput(slicenode)
  127. 891 # We do not want to put these inside the Slice directory,
  128. ...
  129. 993
  130. 994 isflip = False
  131. 995: if solvernode.type().name() == 'flipsolver::2.0':
  132. 996 # We do not need particle ids as we can
  133. 997 # match without them.
  134. ...
  135. 1110 # Now our particle fluid surfacer.
  136. 1111 # This only makes sense in the case of using a particlefluidnode
  137. 1112: if fluidnode.type().name() == 'particlefluidobject':
  138. 1113 surface = distobject.createNode("particlefluidsurface")
  139. 1114 movenodes.append(surface)
  140.  
  141. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\doppyrotoolutils.py:
  142. 63 oldgroup = gravitynode.parm('group').evalAsString()
  143. 64 namepath = fluidnode.path()
  144. 65: if fluidnode.type().name() == 'group':
  145. 66 namepath = namepath + '/groupname0'
  146. 67 else:
  147.  
  148. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\doprbdtoolutils.py:
  149. 236 # Also ensure the node isn't inside a locked asset.
  150. 237 for dop in dopnet.findNodesThatProcessedObject(dopobject):
  151. 238: if dop.type().name() == "rbdkeyactive":
  152. 239 # We can't change nodes in locked HDAs, so they are no good.
  153. 240 if not dop.isInsideLockedHDA():
  154. ...
  155. 401 # For a packed object, don't add any DOP import nodes since we will be
  156. 402 # adding fragments to the existing object.
  157. 403: if rbdnode.type().name() == "rbdpackedobject":
  158. 404 return configurenode
  159. 405
  160.  
  161. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\dopsmoketoolutils.py:
  162. 144 return fluidnode
  163. 145
  164. 146: if potentialgroup.inputs()[0].type().name() == 'switch':
  165. 147 return potentialgroup
  166. 148
  167. ...
  168. 161 if obj.childTypeCategory() == hou.sopNodeTypeCategory():
  169. 162 for sop in obj.children():
  170. 163: if sop.type().name() == 'dopio':
  171. 164 dopiolist.append(sop)
  172. 165
  173. ...
  174. 203 and chs() for group nodes.
  175. 204 """
  176. 205: if node.type().name() == 'group':
  177. 206 expr = 'chs("'+node.path()+'/groupname0")'
  178. 207 else:
  179. ...
  180. 3251 import_node = distribute_node.renderNode()
  181. 3252 for child in distribute_node.children():
  182. 3253: if child.type().name() == 'dopio':
  183. 3254 import_node = child
  184. 3255
  185. ....
  186. 3422 slicesource = distobject.renderNode()
  187. 3423 for child in distobject.children():
  188. 3424: if child.type().name() == 'dopio':
  189. 3425 slicesource = child
  190. 3426
  191.  
  192. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\doptoolutils.py:
  193. 522 outputnode = None
  194. 523 if displaydop is not None:
  195. 524: if displaydop.type().name() == "output":
  196. 525 outputnode = displaydop
  197. 526
  198. ...
  199. 794 for child in objectnode.children():
  200. 795 if isinstance(child, hou.SopNode):
  201. 796: if child.type().name() == "dopimport":
  202. 797 changes.append((child, True, "", ""))
  203. 798 if len(child.inputs()) > 0:
  204. ...
  205. 809 # you write your own custom fracture tool that
  206. 810 # should work with removing objects.
  207. 811: if input.type().name() == 'finalizebreaks' and \
  208. 812 input.creatorState() != "":
  209. 813 changes.append((input, True, "", ""))
  210. ...
  211. 1028 solvernode.setInput(inputnum, merge)
  212. 1029 merge.moveToGoodPosition(False)
  213. 1030: elif thirdnode.type().name() == "merge":
  214. 1031 merge = thirdnode
  215. 1032 else:
  216. ....
  217. 1146
  218. 1147 # If the display dop is the Output DOP, we want its parent!
  219. 1148: if outputdop.type().name() == "output":
  220. 1149 if len(outputdop.inputs()):
  221. 1150 inputdop = outputdop.inputs()[0]
  222.  
  223. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\dopwiretoolutils.py:
  224. 135 for dopnode in dopnodes:
  225. 136 # This operation should only be done on wire objects
  226. 137: if dopnode.type().name() == 'wireobject':
  227. 138 # Find the SOP geometry used by the wire object.
  228. 139 oldsoppath = dopnode.parm('soppath').eval()
  229.  
  230. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\dragdroputils.py:
  231. 38 input_node = target_node
  232. 39
  233. 40: if input_node.type().name() == node_type_name and \
  234. 41 (test_func is None or test_func(input_node)):
  235. 42 node = input_node
  236.  
  237. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\hqueue\houdini.py:
  238. 136 # enabling checkpointing could add spare parameters to the ROP node which
  239. 137 # changes the parameter interface.
  240. 138: if rop.type().name() == "ifd":
  241. 139 _enableMantraCheckpoints(rop, enable_checkpoints)
  242. 140
  243.  
  244. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\muscletoolutils.py:
  245. 17 if len(selection) > 0:
  246. 18 for sel in selection:
  247. 19: if sel.type().name() == 'riggedmuscle':
  248. 20 setCapturePose(sel)
  249. 21: if sel.type().name() == 'musclerig':
  250. 22 setCapturePose(sel)
  251. 23: elif sel.type().name() == 'musclepin':
  252. 24 setPinCapturePose(sel)
  253. 25 else:
  254. ..
  255. 240 for type in types:
  256. 241 for node in selection:
  257. 242: if node.type().name() == type:
  258. 243 return 1
  259. 244 return 0
  260. ...
  261. 1054 ("capture_handle4", "capture_pos4"),
  262. 1055 ("capture_handle5", "capture_pos5"), )
  263. 1056: if obj.type().name() == 'musclepin':
  264. 1057 mirror_parms = ( ("handle1", "pos1"),
  265. 1058 ("capture_handle1", "capture_pos1"), )
  266. ....
  267. 1264 node = pathparm.node()
  268. 1265
  269. 1266: if node.type().name() == 'frankenmuscle':
  270. 1267 sop_selection = []
  271. 1268 group_selection = []
  272. ....
  273. 1293 my_muscle_types = ("riggedmuscle", "musclerig", "musclepin", )
  274. 1294
  275. 1295: if node.type().name() == 'frankenmuscle':
  276. 1296 #select existing sources if any
  277. 1297 hou.clearAllSelected()
  278. ....
  279. 1301 n = hou.node( node.parm("musclerigpath" + str(i+1)).evalAsString() )
  280. 1302 n.setDisplayFlag(1)
  281. 1303: if n.type().name() == 'riggedmuscle':
  282. 1304 n.parm("displaymuscle").set(1)
  283. 1305 n.setCurrent(1)
  284. ....
  285. 1322
  286. 1323 for sel in selection:
  287. 1324: if sel.type().name() == "riggedmuscle":
  288. 1325 sel.parm("displaymuscle").set(0)
  289. 1326 sel.parm("displayhandles").set(1)
  290. ....
  291. 1356 def displayFrankenCapturePose(node):
  292. 1357 """ rifle through the rig sources in the frankenmuscle and set the Display Capture Pose flag accordingly """
  293. 1358: if node.type().name() == 'frankenmuscle':
  294. 1359 d = node.parm("displaycapturepose").eval()
  295. 1360 count = node.parm("numrigs").eval()
  296. ....
  297. 1366 def displayFrankenRigs(node):
  298. 1367 """ rifle through the rig sources in the frankenmuscle and set the Display Capture Pose flag accordingly """
  299. 1368: if node.type().name() == 'frankenmuscle':
  300. 1369 d = node.parm("displayrigsources").eval()
  301. 1370 count = node.parm("numrigs").eval()
  302. ....
  303. 1474 muscle_obj.parmTuple("sphereradius").set( (stroke_radius, stroke_radius, stroke_radius) )
  304. 1475
  305. 1476: if muscle_obj.type().name() == 'musclerig':
  306. 1477 muscle_obj.parm("capturecoreradius").set( 1 )
  307. 1478
  308.  
  309. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\objecttoolutils.py:
  310. 918
  311. 919 # Find a child that is a Constraint_Object with the right Target
  312. 920: if chop.type().name() == "chopnet":
  313. 921 chop_parent = chop
  314. 922 else:
  315. ...
  316. 972
  317. 973 current_node = chop_parent.node('./__audio_chop__')
  318. 974: if current_node and current_node.type().name() == 'constraintparent':
  319. 975 parent_input = current_node.inputs()[2]
  320. 976 if parent_input:
  321. 977 n = parent_input
  322. 978
  323. 979: elif current_node and current_node.type().name() == 'constraintparentx':
  324. 980 n = current_node
  325. 981 n.__outputidx__ = 1
  326. ...
  327. 1269 for i in range(len(chops)):
  328. 1270 chop = chops[i]
  329. 1271: if chop.type().name() == "chopnet":
  330. 1272 chop = chop.node('./__audio_chop__')
  331. 1273 chops_ori[i] = chop
  332. ....
  333. 1339 def constraintparentblendLayout( chop, parent, blend, blend_target, targets ):
  334. 1340
  335. 1341: if chop.type().name() == "chopnet":
  336. 1342 chop = chop.node('./__audio_chop__')
  337. 1343
  338. ....
  339. 2099
  340. 2100 for i in range(len(ret)):
  341. 2101: if ret[i].type().name() == "chopnet":
  342. 2102 ret[i].node("./__audio_chop__").setSelected( on=True, clear_all_selected=(i==0), show_asset_if_selected=False )
  343. 2103 else:
  344. ....
  345. 2268
  346. 2269 if node != None:
  347. 2270: if node.type().category() == hou.objNodeTypeCategory() and node.type().name() == 'geo':
  348. 2271 display = node.displayNode()
  349. 2272 if display != None and display.type().category() == hou.sopNodeTypeCategory():
  350. ....
  351. 2274 xform = node.worldTransform()
  352. 2275
  353. 2276: if node.type().category() == hou.sopNodeTypeCategory() and node.parent() != None and node.parent().type().name() == 'geo':
  354. 2277 geo = node.geometry()
  355. 2278 xform = node.parent().worldTransform()
  356. ....
  357. 2390 for chop in ret:
  358. 2391 # if the return objects are chopnets, then they must be the constraint networks
  359. 2392: if chop.type().name() == "chopnet":
  360. 2393 chop_net = chop
  361. 2394 # else, the return objects are nodes within the constraint chopnet, so grab its parent
  362. ....
  363. 2399 multiply = createChopWithRate(chop_net, 'multiply', 'multiply')
  364. 2400 gamepad = createChopWithRate(chop_net, 'gamepad', 'gamepad')
  365. 2401: if chop.type().name() == 'constraintgetworldspace':
  366. 2402 world = chop
  367. 2403 else:
  368. ....
  369. 2419 try:
  370. 2420 # modify geometry file if constraint is used on camera object
  371. 2421: if chop_net.parent().type().name() == 'cam':
  372. 2422 for node in chop_net.parent().children():
  373. 2423: if node.type().name() == 'file':
  374. 2424 node.parm('file').set('gamepadcam.bgeo')
  375. 2425 except:
  376.  
  377. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\parmutils.py:
  378. 727 is_sop_xform = (
  379. 728 node.type().category().name() == "Sop"
  380. 729: and node.type().name() == "xform")
  381. 730
  382. 731 # Get hscript expression code that returns the result.
  383.  
  384. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\poptoolutils.py:
  385. 253
  386. 254 # special case switches.
  387. 255: if node.type().name() == 'switch':
  388. 256 liveinput = node.parm('input').eval()
  389. 257 if liveinput < 0 or liveinput >= len(node.inputs()):
  390.  
  391. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\rigtoolutils\iktwistuserinput.py:
  392. 54
  393. 55 def isOneBoneInput(inputlist):
  394. 56: return len(inputlist) == 1 and inputlist[0].type().name() == 'bone'
  395. 57
  396. 58 def isStartEndBoneInput(inputlist):
  397. 59 return len(inputlist) == 2 and \
  398. 60: inputlist[0].type().name() == 'bone' and \
  399. 61: inputlist[1].type().name() == 'bone'
  400. 62
  401. 63 def _checkUserInputListError(inputlist):
  402. ..
  403. 78 # First bone must not be parented to another bone
  404. 79 start_inputs = inputlist[0].inputs()
  405. 80: if start_inputs != () and start_inputs[0].type().name() == 'bone':
  406. 81 raise hou.Error("Parent of start bone is a bone. Please select a start bone that does not have a bone parent or does not have a parent")
  407. 82
  408.  
  409. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\shopclerks\clerkutil.py:
  410. 81 if shop.shaderType() == hou.shaderType.Material:
  411. 82 for child in shop.children():
  412. 83: if child.type().name() == 'suboutput':
  413. 84 for con in child.inputConnections():
  414. 85 if idx is None or con.inputIndex() == idx:
  415.  
  416. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\soptoolutils.py:
  417. 385 elif merge_context:
  418. 386 # Create a Merge SOP to view all nodes
  419. 387: if displaysop.type().name() == "merge" \
  420. 388 and displaysop.creatorState() == nodetypename:
  421. 389 mergesop = displaysop
  422. ...
  423. 453 set_obj_pos = container != cwd \
  424. 454 and container.type().category() == hou.objNodeTypeCategory()
  425. 455: if merge_context and container.displayNode().type().name() == "merge":
  426. 456 set_obj_pos = False
  427. 457 if set_obj_pos:
  428. ...
  429. 533 if reusablenode is not None and not reusablenode.isHardLocked() \
  430. 534 and not reusablenode.isBypassed() \
  431. 535: and reusablenode.type().name() == nodetypename:
  432. 536 targetnode = reusablenode
  433. 537 reused = True
  434. ...
  435. 1088
  436. 1089 # Ignore if we already are ease out.
  437. 1090: if node.type().name() == 'attribfade':
  438. 1091 node.setCurrent(True, True)
  439. 1092 active_pane.enterCurrentNodeState()
  440.  
  441. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\terraintoolutils.py:
  442. 136 # We already have something connected to the
  443. 137 # mask input, make sure it is not already a paint
  444. 138: if maskinput.type().name() == 'heightfield_paint':
  445. 139 paintnode = maskinput
  446. 140
  447.  
  448. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\toolutils.py:
  449. 371 A matchtype of None is assumed to match any node.
  450. 372 """
  451. 373: return matchtype is None or node.type().name() == matchtype
  452. 374
  453. 375 def nodeTypeBaseNameMatches(node, matchtype):
  454.  
  455. C:\Program Files\Side Effects Software\Houdini 16.5.378\houdini\python2.7libs\voptoolutils.py:
  456. 607 computes the concatenated prefix.
  457. 608 """
  458. 609: is_parm_vop = node.type().name() == 'parameter'
  459. 610 folder_labels = ["UI Promotion"]
  460. 611 parm_tuple = addOrReplaceStringParm(node,
  461. ...
  462. 781 multi_input = node_type.hasUnorderedInputs()
  463. 782 if (orig_input_node is not None and
  464. 783: orig_input_node.type().name() == filter_node_type):
  465. 784 # The original_input_node is of our mix node type, so we'll
  466. 785 # reuse it for mixing.
  467. ...
  468. 2073 array = array + (node, )
  469. 2074
  470. 2075: if not skip_self and node.type().name() == node_type:
  471. 2076 return node
  472. 2077
  473. ....
  474. 2182 do_delete = True
  475. 2183 elif (orig_input_node is not None and
  476. 2184: orig_input_node.type().name() == mix_with_existing_type):
  477. 2185 mix_node = orig_input_node
  478. 2186
  479.  
  480. 79 matches across 30 files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement