Comment 9 for bug 171282

Revision history for this message
Johan Engelen (johanengelen) wrote : Re: [Bug 171282] Re: Calculator in input fields

On 17-4-2011 17:57, pygmee wrote:
> - could i use object name in calculations (this is kind of similar to keyword usage like pagewidth). For example, if i want the size of an object to be half of another, i'd just write : object2.height=object1.height/2

Although this functionality is somewhat easier to add than the next
point, I think it will only make sense in conjunction with the next:

> - only the result of the calculation is kept in the field. Would it be feasible to keep the formula so that (taking previous example) if i change object1 size, object2 would be affected.

I think SVG supports defining sizes of objects in terms of variables.
But it will be a lot of work to implement this in Inkscape. Although I
see some benefit of this, it is just too much for me to do. (and it
seems a bit too much for Inkscape at this moment too)