Skip to content

Instantly share code, notes, and snippets.

@RedForty
Created March 9, 2020 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RedForty/8d3f680f6883dc3dca9334c387198838 to your computer and use it in GitHub Desktop.
Save RedForty/8d3f680f6883dc3dca9334c387198838 to your computer and use it in GitHub Desktop.
Sets my custom GE colors
# =========================================================================== #
# 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