Hi ..CGA can not dictate the attribute source. CGA gets the attribute values to work with.==>the Connection Editor dictates, which value is used. There's just the 4 states 'Rule', 'User', 'Object Attr' [[or 'Mapped']].So in your case, I'd create a second attribute which dictates the source for your attribute of interest.E.g.
@Hidden // = generic attribute to transport the info
attr finalValue = 0
@Range ( "Rule", "User", "Object" )
attr useWhichAttr = "Rule"
attr ruleDefaultValue = rand(10,20) // connection : attr source = "rule"
attr userValue = rand(10,20) // connection : attr source = "user" // = you playing with slider
attr objectAttrValue = 0 // value initialized with 0 // connection : attr source = "object"
Then :
Lot -->
case useWhichAttr == "Rule" :
set(finalValue, ruleDefaultValue )
GoExtrude
case useWhichAttr == "User" :
set(finalValue, userValue )
GoExtrude
else :
set(finalValue, objectAttrValue )
GoExtrude
GoExtrude -->
extrude( finalValue )
Done.
Like this, you control all possibilities.Ok ?matt