Jump to content

evaluating /obj level shop_materialpath in python

Neon Junkyard

Recommended Posts

I have an fbx subnet with a bunch of different models that Im object merging into a separate geo network with wildcards to grab all the file nodes in the fbx subnet, and enabling create path attribute in the object merge

I need the shop_material path to correctly point to the corresping fbx material that was created, and while most objects are read in with the shop_materialpath attribute correctly, the houdini fbx importer will interpret the material assignment at the object level depending on how the model was prepped, so the resulting shop_materialpath from the object merge is missing.  The textures and materials are there at the object level (in the fbx subnet) but the shop path is wrong, and thus textures break in the object merge. 

so I need in a python sop to run a loop over each prim, eval the obj level shop_materialpath parameter from its path parameter (i.e. its source geo network in the fbx subnet) and append that string to the current geo shop_materialpath for the missing prims


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.

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...