on 03-11-2008 6:03 PM
hi everyone,
i am trying to create a 3D dial guage with a hard coded value of 63. now i want my needle to point at 63 on a scale of 0 to 100.
steps that i did.
1) selected a SVG obect as 3d dial guage.
2)created object properties
label as string
MaxRange as number 100.0
MinRange as number 0.0
performance as number 63.0
3)created 2 calculated properties as
a) performpercentage ,type as number and expression as format( performance , 0.0)
b) rotation type as number and expression as rotate( & * (20+320*(performance-MinRange)/(MaxRange-MinRange)) & *150 150)
4) on the animation link editor have linked the performance to svg elemnt value label -text
and rotation to needle -transform..
question is my needle is not pointing at 63...what should i do plz help me.
Lokesh,
Its a bit confusing for me... may be you can try the following ways..
You might be facing the problem with 3 b) rotation type...
In the rotation type instead of making the equation big and complicated, split into parts say for ex:
In the calculated properties instead of rotation type create one with
degree = format((20+(performance/100)*320) , 0.00)
And in the animation link editor you can assign
"rotate("°ree & " 150 150)" to the needle
Hope this solves your problem.
Good luck,
Ajay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ajay,
your solutioin did work for me....Thanks a lot for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.