Render Setup command to get to Collection Filters.

461 views
Skip to first unread message

dd_23

unread,
Mar 8, 2022, 1:05:24 PM3/8/22
to Python Programming for Autodesk Maya
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.



Screen Shot 2022-03-08 at 9.56.33 AM.png

dd_23

unread,
Mar 8, 2022, 9:10:41 PM3/8/22
to Python Programming for Autodesk Maya
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('*')
Reply all
Reply to author
Forward
0 new messages