Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Reset single output value at interaction node

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
errox

Reset single output value at interaction node

Post by errox » 29 Aug 2012, 15:45

Hi,

I need to reset a single output value on the touch transformation node.
I am using the Scaling output (limited within 0 to 1) to resize a rectancle.
If a user stops to scale, a script changes size of the rectancle to small or enlarged (2 states).
After that I need to reset just the Scaling Value (or set it).
My workaround to this problem is to wait until the next user reaches the previous
scaling value and not till then pass value through. So the possible pinch gesture is narrowed.
Works good so far..

But I got another case: I need to use the scaling value just to upscale a rectancle.
After the user has stopped scaling the size of the rect it has to resize back to "normal" by script/expr.
There is just one fix state: "normal size/state".
So I need to reset the scaling value at the moment of "normal state"
else if scaling has reached MaxScaling no more upscaling is possible...
(example: "normal state", scaling value=2 (max=2, min=1) Scaling below "normal state/size" is not allowed!)

One possible workaround could be not to use Max/MinScaling and to subtract current ScalingValue from previous backwarded ScalingValue
from "normal state"....But then we could deal with very big floats if no one resets the complete outputs. Not the way to choose.

The available Reset resets all values, but I need to leave X,Y untouched.

Any hints?



Thanks Alex for your fast replies, I will reply to yours' in bug report tonight.

errox

Re: Reset single output value at interaction node

Post by errox » 30 Aug 2012, 15:06

A better solution for the first case (2 scale-states) is to use the tick mode on scaling with 2 limited states....
Didn't see that in the first place.


For the second case I haven't found a solution...

User avatar
Oliver
Posts: 67
Joined: 12 Jan 2012, 10:38

Re: Reset single output value at interaction node

Post by Oliver » 31 Aug 2012, 12:38

This should make sad panda happy again ;) !

Cheers!
Attachments
TouchTranslationSupport.vza
(435.48 KiB) Downloaded 279 times

errox

Re: Reset single output value at interaction node

Post by errox » 31 Aug 2012, 15:52

Hi Oli,

thanks for your effort!!

I'm sorry to tell you that this won't help me out.
You deactivate the limits while TouchInside, but I always need the limits for translation: Popups are not allowed to leave the visibile view.
Additionally the user should not rotate the popup. While deactivating the limits, it is possible to rotate....

Nevertheless it is a good idea to de-/activate the limits to get a "snap back" to the specific limit value,
but as long as the "limits Active" bool affects all limits it doesn't really make this workaround flexible.

I hope you/anyone will still have a thought about this hereafter...

Greetings
Nico

errox

Re: Reset single output value at interaction node

Post by errox » 07 Sep 2012, 13:31

I hope you/anyone will still have a thought about this hereafter...
Doesn't someone has a solution/idea?

Thanks,
Nico

Stefan Goerke
Posts: 10
Joined: 18 Jan 2012, 11:59

Re: Reset single output value at interaction node

Post by Stefan Goerke » 10 Sep 2012, 12:58

hey errox,

hope, i got you right and the example is what you need.

Regards,
Stefan
Attachments
SupportTouchtranslation2.vza
(435.99 KiB) Downloaded 277 times

User avatar
Daniel Willer
Posts: 309
Joined: 06 Jan 2012, 18:12

Re: Reset single output value at interaction node

Post by Daniel Willer » 10 Sep 2012, 13:29

You could use Olivers solution and process the limits manual by expression nodes. But in that case the TouchBehavior will get lost.
Attachments
Touchtranslationtest.vzs
(10 KiB) Downloaded 281 times

Post Reply