Hello,
I can't figure how to do a selection for an object with his hierarchy path to assign it a shader with an aiSetParameter.
In my aiSetParameter if I set selection to \*rootgroup/subgroup/box* this do not work.
But if i set the selection to \*box*, this work.
How to set the selection with an object hierarchy path ?
I need this to assign different shaders to objects which have the same name but in different groups.
Thanks
If this is inside maya try |rootgroup|subgroup|box* if you have Export Full Paths enabled in the render Settings, otherwise just the shape name will do.
Thanks Ashley.
This expression works : \*rootgroup*box*
And yes separator are |.
In fact my problem was comming from something else. I needed to disable procedural cache in user options.
Thanks.