vhalldez Posted October 23, 2019 Share Posted October 23, 2019 Hi friends...I have more than 10024587515 Geo nodes on my SOP network...I need to add a Normal Sop on the final network of everything, I have to do it one by one? Or Houdini give me a way to do automaticly? If yes, which? Thank you for all Quote Link to comment Share on other sites More sharing options...
3dome Posted October 23, 2019 Share Posted October 23, 2019 For stuff like that use Python. Create a shelf tool with the following code: obj = hou.node("obj/") geos = obj.children() for geo in geos: last = geo.children()[-1] nml = geo.createNode("normal") nml.setInput(0, last) nml.moveToGoodPosition() nml.setRenderFlag(1) nml.setDisplayFlag(1) Quote Link to comment Share on other sites More sharing options...
LucaScheller Posted October 23, 2019 Share Posted October 23, 2019 (edited) 3 hours ago, vhalldez said: Hi friends...I have more than 10024587515 Geo nodes on my SOP network...I need to add a Normal Sop on the final network of everything, I have to do it one by one? Or Houdini give me a way to do automaticly? If yes, which? Thank you for all If all the geo nodes are on the same hierarchy level (e.g. "/obj/geo_nodes/geo_0","/obj/geo_nodes/geo_1","/obj/geo_nodes/geo_2",...), you can create a new "geo" node and then merge everything using an "object merge" node with the wild card syntax: Be sure to check the "Create Per-Primitive Path" Attribute. Then you can loop over the packed prims via the path and unpack, add normals, repack the geo while still keeping the same path hierarchy. Edited October 23, 2019 by LucaScheller 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.