Dashboard_avatar
Jan 09, 2012
Post id: 309429 Report Item

Hi. I use rpc to create nodes in houdini from maya.


I dont undeerstand why this code work in houdini:


 












1
2
3
4
5
6
7
8


hObj = hou.node('/obj').createNode('geo', 'v')
hObj.moveToGoodPosition()
hObj.node('file1').destroy()
hImportFromMaya = hObj.createNode('file','importFromMaya')
hExportToMaya= hObj.createNode('file','exportToMaya')
hImportFromMaya.moveToGoodPosition()
hExportToMaya.moveToGoodPosition()
hExportToMaya.setFirstInput(hImportFromMaya)




 


and not work in maya. Maya code:


 












1
2
3
4
5
6
7
8
9
10
11


import houxmlrpc
hou = houxmlrpc.ServerProxy( 'http://localhost:8888' ).hou
 
hObj = hou.node('/obj').createNode('geo', 'v')
hObj.moveToGoodPosition()
hObj.node('file1').destroy()
hImportFromMaya = hObj.createNode('file','importFromMaya')
hExportToMaya= hObj.createNode('file','exportToMaya')
hImportFromMaya.moveToGoodPosition()
hExportToMaya.moveToGoodPosition()
hExportToMaya.setFirstInput(hImportFromMaya)















# Error: TypeError: cannot marshal recursive dictionaries #