Jump to content

script node


3dbeing

Recommended Posts

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

Link to comment
Share on other sites

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 ... :blink: 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 by 3dbeing
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...