Changing/Overriding Materials Using Geo Spread Sheet

   2258   4   2
User Avatar
Member
72 posts
Joined: Nov. 2018
Offline
I've bought a model and imported it into into my scene. It has more 1000 object! It is impossible for me to change the material for each object with this number. I tried to change to assign new materials to the based on the materials groups. But old materials keeps appearing in the rendered view. I thought maybe I can re-assign the materials using the geo spread sheet. But I am not sure if I can do that.

Appreciate your advice and support.
User Avatar
Member
191 posts
Joined: Oct. 2018
Offline
Do you know how the material is getting assigned?

Is this one object node with materials assigned by using the shop_materialpath attribute? Or many object nodes assigning the material on the main object's geometry node in the Render tab > Material slot?
User Avatar
Member
734 posts
Joined: Dec. 2006
Offline
Try opfind. Open a textport (alt shift t), and if your material is called "foo" you would type "opfind foo". This tells you all the objects referencing "foo".

Now if you want to change it to "fum":

opchange foo fum

Sean
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
8839 posts
Joined: July 2007
Offline
usually you want to manage this on SOP level (assuming you are not using LOPs yet)
bring in alembic containing 1000's of objects, keep them as packed alembic
generate primitive s@shop_materialpath attribute containing path to corresponding material based on s@path attribute for example, in such case it's helpful to have material in the name of the object
or alternatively use Material SOP to assign materials more manually, which will also create s@shop_materialpath attribute
then each packed alembic primitive should render with it's own assigned material
Edited by tamte - March 18, 2021 11:30:41
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
72 posts
Joined: Nov. 2018
Offline
Thanks everyone. I imported the model as OBJ and it was easier to assign the materials by groups and selection via geo spreadsheet.

Thanks again,
  • Quick Links