On Tue, Mar 8, 2016 at 3:30 AM, Edward K. Ream <[email protected]> wrote:

> ​​
> On Mon, Mar 7, 2016 at 12:14 PM, Phil <[email protected]> wrote:
>
> ​> ​
> Is there a way to combine
> ​ [two different sets of clones] so that they really are clones of the
> exact same node?
>
> There is always a way, given the proper script.
>

​True, but the script I gave wasn't it!​


​Let p1 be one of the desired clones, and p2 be any one of the deprecated
clones.  This following *might *work, but do be careful.

    for p in list(c.all_unique_positions()):
        if p.v == p2.v:
            p.v = p1.v

The list builtin "freezes" the generated positions *before* messing around
with nodes, so this code might work even if p1 or p2 has children. It is
more likely to work for copyright nodes without children.

HTH. Again, *make backups first*.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to