Author Topic: Reassign a "master" as a "copy" CLONES  (Read 469 times)

July 01, 2019, 12:28:07 PM
Read 469 times

Bad Hair Day

  • Jr. Member

  • Offline
  • ***

  • 38
  • Gender
    Male

    Male
C -->  D D D  --> E E E E                B

I have one object C.  I made a tiled copy of it into 3 C's, that I put elsewhere on the Page.  Then I took one D, made a tiled copy of it into 4 E's, and put them elsewhere on the page.  Unrelated to C D and E is a B object somewhere on the page.

Now, I would like to reassign C.  Instead of being the object that determines the characteristics of the D's and E's, I want C to act like a copy of B, so that B determines the characteristics of the C's, D's and E's. 

If it matters at all: at one point ALL of these things were copied from the single solitary A which is still on the page, just not in use.  I kind of keep it as a relic, just sitting off on a corner.  I know how to make a copy of A and then reassign it as a "master" that doesn't take direction from anyone on what its characteristics are. 

Thanks for reading.

BHD
« Last Edit: July 01, 2019, 02:31:42 PM by Bad Hair Day »
  • 1.0 Alpha
  • Win10

July 01, 2019, 12:54:42 PM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

Guess you are referring to tiled clones.

It doesn't necessarily needs tiling, you can create clones by pressing Alt+D once an object is selected.
Which parent object can be anything.

This case, if it was a group of even a single object, it could seed up your process.
Select "C", press Ctrl+G for the grouping, and clone the group (Alt+D).

Then, if you want to change "C" completely to look like "D", select "D", copy it (Ctrl+C),
enter the group of "C" (Ctrl+Enter or by double clicking it), select all (Ctrl+A),
delete (Del), and paste object (Ctrl+V).

July 01, 2019, 02:33:46 PM
Reply #2

Bad Hair Day

  • Jr. Member

  • Offline
  • ***

  • 38
  • Gender
    Male

    Male
Hi,

Yes, this is all talking about clones. 

I think I wasn't clear enough. 

E's all look like one of the D's.

D''s all look like one C.

The C is independent.

I want to reassign the C to be a copy of a B, so that C is now identical to B.  If I change anything in B, then this also changes all the C's D's and E's. 
  • 1.0 Alpha
  • Win10

July 01, 2019, 04:09:34 PM
Reply #3

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
So basically you want a B* identical looking to B but not a clone of it, to be a parent for C
while B being a separate parent for D and E.

Duplicating B (by pressing Ctrl+D once selected) you can cut the duplicant and paste into the group as suggested above.
Duplicaing creates a new object with an independent id so it won't be linked to the original one by any means as per se (although gradient fills and other style attributes can still be linked to yet another independent source stored in the defs section).

July 01, 2019, 08:48:51 PM
Reply #4

Bad Hair Day

  • Jr. Member

  • Offline
  • ***

  • 38
  • Gender
    Male

    Male
Oh, uh, no. 

I have a hex.  I made a clone of it.  THe first hex now has a clone, the second hex.  So if I change the first hex to a fill of red, then the second hex automatically changes to red. 

Now, imagine a third hex.  This hex is completely independent of the first and second hex.  Let's call this one the "independent hex." 

I want to push a button and make the first hex now act as if it is a clone of the independent hex.  How do I do that?

I will know it has been done right when I can change the color of the independent hex to green, and now the first hex AND the second hex have changed to green.

  • 1.0 Alpha
  • Win10

July 02, 2019, 12:03:56 AM
Reply #5

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Theoretically you can do that via the menu option in 0.92 Edit/Clone/Relink to Copied.
The previously mentioned cloning groups workaround is easier to handle though.
Ditch the content in the first hex's parent with the objects building up the independent hex.
Doesn't need a button just entering the group by double clicking.
Exit by Ctrl+Backspace or by selecting an object outside the group.

July 02, 2019, 09:14:15 PM
Reply #6

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Interesting....  I didn't think it was possible to do what you want.  But when Lazur mentioned relinking, I had to look it up in the manual.  It does sound possible, from what the manual says.  I haven't tested it, but here's the info:

http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Clones.html
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 02, 2019, 11:44:49 PM
Reply #7

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Biggest concern with clones is transformation.

If you relink the parent my guess it will still inherit the location from the original parent and you'll end up with each "updated" clones having a relative offset spread around -exactly the amount in between the original and new parent. If those clones were rotated furthermore and not just translated along the canvas it'll look way random and there is hardly anything you can do about it.

Thus you'd need the new parent to be located exactly at the positio of the old one -atop of it; or for "easier" handling, on a separate layer...

Copy-pasting contents from one group to another yet preserves the ability to "shift" the new parents contents back to position. My guess that's easier to handle.