How to break connection but keep value?

Hello,

I want to break a connection but keep the value (I don't want the default value).

It's for delete the dimmer attribute from the lightgen-plugin of HDRshop, because Mental-ray don't like him :wink:

Thanks if you know or script a melscipt for this.

L

I have finding a temporary solution but it works for all attributes :
Doing a copy of the object.

be more specific in way You want to break connection!
manually? by script?

Any way you want if the value stays the same after I break the connection
and don't become the default value.

Value is kept by default

yes value is kept by default! Unless you have 2 connections comming in wich is possible if you have both keyed and constrained the value, or a expression can also sometimes be connected to avalue thats been keyed.

there is no Anyway.
If You need script for copying just one attr, then do it by ctrl+c ctrl+v, if bunch of attrs, then way to hold values is to

read number of attrs,
create array this large,
copy values,
break connection and
fetch values to broken attrs.

Just write mel!