Toggle navigation
Polycount
News
Forums
Patreon
Challenges
The BRAWL² Tournament Challenge!
Bi-Monthly Environment Art Challenge
Wiki
Moar
Recent
Activity
Badges
Drafts
Store
Help
Sign In
·
Register
Author:
shinobik
Home
›
Search
Topic
Display Color Channel Script
Author
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
Search
Display Color Channel Script
Topic by
be_ha
·
Jan 2021
·
Home
›
Coding, Scripting, Shaders
Hi all, I'm wondering if anyone knows of a script to change the selected object's Display Color Channel from Ambient+Diffuse to None. I can't find anything on google. Any help would be greatly appreciated!
Re: Display Color Channel Script
Reply by
suspectlogic
·
Feb 2021
·
Home
›
Coding, Scripting, Shaders
# Toggle between Ambient+Diffuse and None display modes. import maya.cmds as cmds selectedShapes = cmds.ls(transforms=True, selection = True) def SetDisplay(curShape ,curMode): if curMode == "Ambient+Diffuse": cmds.setAttr(curShape + '.displayColorChannel', 'None', type = 'string') else:…
2 results