Hi all,
I'm new with scripting in Houdini. I have tons of objects imported via FBX out of a CAD-software and I need to append UV-coordinates to a over 100 of them. It's easy to select them, but isn't it possible to insert a UV-unwrap sop automatically with a script?
Thanks for help
Detlef
Add node via script
2585 4 2-
- winkel
- Member
- 218 posts
- Joined: March 2006
- Offline
-
- jjayakumar
- Member
- 106 posts
- Joined: June 2011
- Offline
-
- winkel
- Member
- 218 posts
- Joined: March 2006
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
for geo_node in geo_nodes:
# Find the geometry object's display node.
displayNode = geo_node.displayNode()
# Create an output node from it.
uv = displayNode.createOutputNode(“uvunwrap”)
# Set the display flag on the new node to be true.
uv.setDisplayFlag(True)
# Set the render flag to the new node if it was set on the old display
# node (which it probably was, so you could probably hard code True instead)
uv.setRenderFlag(displayNode.isRenderFlagSet())
# Find the geometry object's display node.
displayNode = geo_node.displayNode()
# Create an output node from it.
uv = displayNode.createOutputNode(“uvunwrap”)
# Set the display flag on the new node to be true.
uv.setDisplayFlag(True)
# Set the render flag to the new node if it was set on the old display
# node (which it probably was, so you could probably hard code True instead)
uv.setRenderFlag(displayNode.isRenderFlagSet())
Graham Thompson, Technical Artist @ Rockstar Games
-
- winkel
- Member
- 218 posts
- Joined: March 2006
- Offline
-
- Quick Links


