3dbeing Posted December 16, 2011 Share Posted December 16, 2011 Probably it's friday and this is dumb question, but I'm a little confused about the script node... It seems to want a file, but if I select a .py file it errors... it is on python and node is set to python... if I put in something like print '123' it does this fine. Now if I put in: hou.pwd().geometry() i get an infinite recurssion error... where is this recursion coming from? Thanks, -=3db Quote Link to comment Share on other sites More sharing options...
tmdag Posted December 16, 2011 Share Posted December 16, 2011 use hou.pwd().inputs()[0].geometry() to avoid infinite cooking of script geo 1 Quote Link to comment Share on other sites More sharing options...
3dbeing Posted December 16, 2011 Author Share Posted December 16, 2011 Thanks tm, I guess I'm just not understanding, why, if it's only able to query and not alter anything, there would be any recursion? Quote Link to comment Share on other sites More sharing options...
graham Posted December 16, 2011 Share Posted December 16, 2011 You can't ask the node to give you its geometry when it hasn't cooked yet. Personally I don't think the Script SOP and Python are very useful, which is why I created this (particularly the SOP): http://houdinitoolbox.com/houdini.php?asset=6 Quote Link to comment Share on other sites More sharing options...
3dbeing Posted December 17, 2011 Author Share Posted December 17, 2011 (edited) You can't ask the node to give you its geometry when it hasn't cooked yet. Personally I don't think the Script SOP and Python are very useful, which is why I created this (particularly the SOP): Ummm, yes! This is exactly what I want form a python sop!! Cheers Grahm ps, took a look at the other stuff, wow what a smorgusmorg(sp?) of Houdini goodness! But I seem to be missing the inlinecpp python module? Im on windows and latest Houdini build. ahhh just found this thread ... I think I'm in over my head again... I checked and I can import inlinecpp in the py shell, but when I try and plug in a box to the poly-round i get Error: Python error: Traceback (most recent call last): File "<stdin>", line 36, in <module> File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.67/houdini/python2.6libs\hou.py", line 16720, in __getattr__ def __getattr__(*args): return _hou.HDAModule___getattr__(*args) AttributeError: 'module' object has no attribute 'getConnectedPrimitives' Error: Python error: Traceback (most recent call last): File "<stdin>", line 36, in <module> File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.67/houdini/python2.6libs\hou.py", line 16720, in __getattr__ def __getattr__(*args): return _hou.HDAModule___getattr__(*args) AttributeError: 'module' object has no attribute 'getConnectedPrimitives' Edited December 17, 2011 by 3dbeing Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.