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?
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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!
String variable event not fired when input bound to
Moderator: Support
-
- Posts: 666
- Joined: 18 Jan 2012, 20:56
- Location: wuppertal
- Contact:
Re: String variable event not fired when input bound to
please try:
./images/XXXX.png
for the path
./images/XXXX.png
for the path
Re: String variable event not fired when input bound to
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.
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
Actually, it worked. When I start an empty scene from scratch. Within my bigger scene, it does not work. Software... A working scene attached.
- Attachments
-
- NoEventFired.vza
- (29 KiB) Downloaded 321 times
Re: String variable event not fired when input bound to
You dont need a value dispatcher for this, its possible to bind multiple image to texture nodes to an image loaderI have a scene where a value dispatcher sets two texture nodes to the same value
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.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.
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
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.
-
- Posts: 666
- Joined: 18 Jan 2012, 20:56
- Location: wuppertal
- Contact:
Re: String variable event not fired when input bound to
i would say a bug!
please try my one....i just delayd the changed event by one frame...and it works
greetz
christian
please try my one....i just delayd the changed event by one frame...and it works
greetz
christian
- Attachments
-
- NoEventFiredWithDelay.vza
- (29 KiB) Downloaded 294 times
-
- Posts: 666
- Joined: 18 Jan 2012, 20:56
- Location: wuppertal
- Contact:
Re: String variable event not fired when input bound to
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
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