Hi,
I have a digital asset that uses a color ramp in the parameters, but I can't figure out how to set the defaults for it. As if it is now, when a new instance of the asset is used the ramp defaults to a two point black/white gradient. Which really isn't correct for the context of the asset.
Is there anyway to set this?
Thanks,
How to set default params for a Color Ramp parameter?
Started by hopbin9, Jul 20 2012 09:46 AM
2 replies to this topic
#1
Posted 20 July 2012 - 09:46 AM
#2
Posted 20 July 2012 - 10:25 AM
Ramp parameters (which are really a fancy multiparm block) are definitely lacking with the default settings through the interface. However, if you create the parameter, configure the points how you like and hit the 'Get from parameter' button on the parameter in the Type Properties it should save the state as the default values.
You could also add an OnCreated section to your asset and configuring all the default points manually.
You could also add an OnCreated section to your asset and configuring all the default points manually.
Edited by graham, 20 July 2012 - 10:26 AM.
I write python and break things.
#3
Posted 20 July 2012 - 10:39 AM
Thanks Graham, that did the trick!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












