Never-mind, I got it, all it needed was going through renderSetup.py again.
For anybody looking here is the command:
c.getSelector().setFilterType(selector.Filters.kShapes)
c.getSelector().setPattern('*')
On Tuesday, March 8, 2022 at 10:05:24 AM UTC-8 dd_23 wrote:
> Hello,
>
> TLDR: need command to set collection filters and the params to include.
>
> I am trying to automate some render layer creation process so that the
> team can easily create new render layers with some predefined collections
> and overrides.
>
> With the help online and RenderSetup python file, I did manage to get most
> of the process done. I am however stuck at getting the correct command to
> set the collection filters and params should be included in them.
> I want to select all shape nodes in the scene and will use "*" command in
> the include all shapes in the scene.
>
> Can somebody point me to the right direction? I am sharing the collection
> filter that i want and the param that I wanna include. See attachment.
>
> Thanks in advance.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/dd6679b3-e2c7-4bff-b0b9-acab12e5e214n%40googlegroups.com.