[python] link colorramp together

   1520   2   1
User Avatar
Member
5 posts
Joined: April 2016
Offline
Hello!
I can't find a way to put an expression that link a color ramp to another one in python. (like a copy / paste relative references would do)
I know it's kind of a hidden multiparms, but I can't correctly put an expression to each of these parms.
The setExpression is kinda linking the parms but this don't seem to work because when I create a new entry in the ref(new color), it's not linked.

Thanks for your help,
Gabriel
User Avatar
Member
7741 posts
Joined: Sept. 2011
Offline
check out pyro2.py

from pyro2 import xferLinkParm

xferLinkParm(sourceparm, destparm, relpath=False)
[code]
User Avatar
Member
5 posts
Joined: April 2016
Offline
Thanks jsmack, it's working like a charm!
I didnt knew about that module, it's great!
  • Quick Links