now browsing by tag

 
 

Hi Pierre Hébert​

Hi Pierre Hébert​

I am playing around with the SVG-stuff. But I cannot make it do what I want in Binding. My script works fine.

Here is the SVG:

http://www.w3.org/2000/svg” xmlns:xlink=”http://www.w3.org/1999/xlink

viewBox=”0 0 99 99″ style=”enable-background:new 0 0 99 99;” xml:space=”preserve”>

d=”M50,5 c-20,100 20,100 0,0″/>

Here is the working Script :

var s = getEvent().getItem().getBoxBackground(‘n’).getSvgRoot().getElementById(‘hand’)

if (s.getTransform() == null)

{ s.setTransform(‘rotate(33 -50 -60)’)}

else

{ s.setTransform(”)}

But as the photo shows, it will not rotate wirh bindings. But the binding-options for the SVG #hand do populate.

Any suggestions?

]]>