Sie sind nicht angemeldet.

rdhoore108

Schüler

  • »rdhoore108« ist der Autor dieses Themas

Beiträge: 89

Wohnort: Belgium

Beruf: Systems and Network Administrator

  • Nachricht senden

1

Samstag, 2. Oktober 2010, 11:10

Related scales

I have a plugin parent with some plugin kiddies. The scale of the kids should relate to that of the parent, but as a factor, not just a copy of the parent's scale value.

In other words:
plugin[floorplan].scalechildren=true --> when I do this, the scale of the children will be an exact copy. But I need the scale of the children to be 2.5x the scale of the parent.

Is anyone aware of a way to achieve this, no matter how complicated?
- Ronny D'Hoore

2

Samstag, 2. Oktober 2010, 12:52

Doesn't scalechildren + scale=2.5 do it? Just suggesting, I never tried it.

rdhoore108

Schüler

  • »rdhoore108« ist der Autor dieses Themas

Beiträge: 89

Wohnort: Belgium

Beruf: Systems and Network Administrator

  • Nachricht senden

3

Samstag, 2. Oktober 2010, 17:03

Nope, either the parent scale is used, or the child's scale, they are never combined.
- Ronny D'Hoore

4

Samstag, 2. Oktober 2010, 17:05

What if you use the parent's scale and set the children dimensions to a %?

Or you could just try to make your own resize action which first resizes the father and then resizes the children based on calculations with the width and height of the father (like, with mul)?

rdhoore108

Schüler

  • »rdhoore108« ist der Autor dieses Themas

Beiträge: 89

Wohnort: Belgium

Beruf: Systems and Network Administrator

  • Nachricht senden

5

Samstag, 2. Oktober 2010, 18:44

Actually, your suggestion to use a percentage for the children proves to work very nicely for my purpose. Thanks!

(A resize action would not work well because I'm resizing the parent with a tween when the mouse comes over it.)
- Ronny D'Hoore