Mikal Posted July 24, 2010 Share Posted July 24, 2010 I'd like to set the SDF SOP PATH for a Fluid Object in Python to "/obj/geo1/platonic1". Currently I'm doing this with the following expression. myFluidObject.parm('surface_soppath').set("/obj/" + str(myNode) + "/" + str(myPlatonicNode)) But, I imagine there must be a cleaner way of setting this final path. Given Houdini knows that myPlatonicNode = <hou.SopNode of type platonic at /obj/geo1/platonic1> - I'm hoping there's a way to extract path at the end, instead of the cumbersome string formatting process I'm using... In my imaginary world, something like:- myFluidObject.parm('surface_soppath').set(path(myPlatonicNode)) Be there anything magical like that? CHeers! Quote Link to comment Share on other sites More sharing options...
graham Posted July 25, 2010 Share Posted July 25, 2010 You just want hou.Node.path(). myFluidObject.parm('surface_soppath').set(myPlatonicNode.path()) Quote Link to comment Share on other sites More sharing options...
Mikal Posted July 25, 2010 Author Share Posted July 25, 2010 There it is.. thanks again Graham 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.