Page 1 of 1
String variable event not fired when input bound to
Posted: 08 Jun 2014, 15:52
by plkmarudny
Value Dispatcher carrying URI
I have a scene where a value dispatcher sets two texture nodes to the same value (taken from another image loader). So far so good. Works. Now, I bind the input of the string variable to the same output, so a variable is set to URI like this "ventuz://images/XXXX.png Texture". And here is the thing: the event is not generated. Tried to insert "ToText" node before setting a string variable - no success neither. I can see the variable value being changed, just an event is not fired.
Am I missing something here?
Re: String variable event not fired when input bound to
Posted: 10 Jun 2014, 09:58
by chriss0212
please try:
./images/XXXX.png
for the path
Re: String variable event not fired when input bound to
Posted: 10 Jun 2014, 10:17
by plkmarudny
I am not really sure if I got it: the URI is constructed by Ventuz itself, so I cannot control it. I can however, convert it to Text (or a string rather) and manipulate it from there.
So, I tried now to trim "ventuz://images/XXXX.png Texture" stringto the "XXXX.png" only and again it sets the variable of type string just fine, no event is fired however.
Re: String variable event not fired when input bound to
Posted: 10 Jun 2014, 13:22
by plkmarudny
Actually, it worked. When I start an empty scene from scratch. Within my bigger scene, it does not work. Software... A working scene attached.
Re: String variable event not fired when input bound to
Posted: 10 Jun 2014, 15:22
by schub
I have a scene where a value dispatcher sets two texture nodes to the same value
You dont need a
value dispatcher for this, its possible to bind multiple
image to texture nodes to an
image loader
Now, I bind the input of the string variable to the same output, so a variable is set to URI like this "ventuz://images/XXXX.png Texture". And here is the thing: the event is not generated.
Assuming you're talking about the changed event, I would recommend connecting the
string to the file property of the
image loader, in your sample scene the
string was bound to the texture property of the the
texture node.
To do this, you need to drag the value input of the
string node over the
image loader, but dont drop it there, instead drag it to the property editor to the file input of the
image loader.

Also don't forget to enable value monitoring in your property editor
Re: String variable event not fired when input bound to
Posted: 11 Jun 2014, 08:00
by plkmarudny
Thanks schub. Indeed, Image Loader File property is a better source for binding. I need a value dispatcher however, as my scene is a little bit more complicated than a small example attached.
Re: String variable event not fired when input bound to
Posted: 11 Jun 2014, 08:20
by chriss0212
i would say a bug!
please try my one....i just delayd the changed event by one frame...and it works
greetz
christian
Re: String variable event not fired when input bound to
Posted: 11 Jun 2014, 08:46
by chriss0212
if you use a texture loader an set the async property to true you can use the loaded event. but it only works, if the async is set to true!!!
i am not sure if it is realy a bug...problem is: if you dont use async loading the scene will freez a short moment during loading...and this is exactly the time, where the changed event is fired.
greetz
christian