Created
March 9, 2020 02:58
-
-
Save RedForty/8d3f680f6883dc3dca9334c387198838 to your computer and use it in GitHub Desktop.
Sets my custom GE colors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# =========================================================================== # | |
# Custom GE colors | |
# List the currently defined custom curve colors | |
# curve_colors = cmds.curveRGBColor( list=True ) | |
curve_colors = [ 'rotateZ 0 1 1' | |
, 'translateY 0 1 0' | |
, 'scaleZ 0.519899 0 0.965517' | |
, 'translateX 1 0 0' | |
, 'rotateY 1 1 0' | |
, 'scaleX 0.82 0 0.82' | |
, 'scaleY 0.588 0.086436 0.298639' | |
, 'rotateX 1 0.323 0' | |
, 'visibility 0.671 0.671 0.671' | |
, 'translateZ 0.212 0.393844 1' | |
] | |
new_curve_colors = [] | |
for value in curve_colors: | |
new_vars = value.split(' ') | |
new_vars = [str(new_vars[0]), float(new_vars[1]), float(new_vars[2]), float(new_vars[3])] | |
cmds.curveRGBColor(*new_vars) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment