Procedurals (Make'm Move)

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Procedurals (Make'm Move) // Interactive Artwork

1  2  |  

Post by SiRender // Feb 20, 2006, 11:46pm

SiRender
Total Posts: 38
Most likely it is not possible to detect this for script objects for now. We can add the methods for this, but still, I'm curious what scenario do you have in mind because this is quite a special request.


Thanks for the reply. I should have started a new thread.


The first thing I was thinking was if you wanted to switch between say 6 inputs but you might not have all 6 inputs being used. So, in the script I don't want to really use a value when there is no connection because that value is invalid.


Maybe what I really want is an n-ary input. I grabbed an n-ary OR from somewhere and messed around with it but it actually didn't seem to recognize more than the first connection. Is it possible to connect multiple links to an input and see that as a list? That is probably what I'm looking for.


Otherwise, maybe there is a way to keep track using functions OnSetValue(), OnDefaultValue(), and OnCreate().

Post by SiRender // Feb 21, 2006, 12:02am

SiRender
Total Posts: 38
Peter,


Here is an example n-Ary test. I just connected two input scripts and another output script. The objects are identical and just copy the input to the output.


It does seem to work that the final output is the AND of the two inputs but the intermediate values seem strange for when one or none of the inputs are true.

Post by peterma // Feb 22, 2006, 12:54am

peterma
Total Posts: 48
Maybe what I really want is an n-ary input. I grabbed an n-ary OR from somewhere and messed around with it but it actually didn't seem to recognize more than the first connection. Is it possible to connect multiple links to an input and see that as a list? That is probably what I'm looking for.



no, this is not possible currently, it is a limitation of the Rosetta Kernel.

You can connect more links to the same input connector using LE, but the node only recognizes value from the first link and ignores others.


Solution - Martin the kernel master told me perhaps he can add the feature for tS7.1 (we already disussed this in the past) - it is a question of priorities so you should cry loudly enought to request the feature. :) I think this one would be really cool and usefull.

Post by SiRender // Feb 22, 2006, 11:10pm

SiRender
Total Posts: 38
no, this is not possible currently, it is a limitation of the Rosetta Kernel.

You can connect more links to the same input connector using LE, but the node only recognizes value from the first link and ignores others.


Solution - Martin the kernel master told me perhaps he can add the feature for tS7.1 (we already disussed this in the past) - it is a question of priorities so you should cry loudly enought to request the feature. :) I think this one would be really cool and usefull.


Peter,


I know what you mean by priorities. I should back up a request by finding some really interesting and practical things that are not possible without having n-ary inputs.


I was just looking at the activity in "Activities -> My Activities -> 'Interactive Replace Tool' ". I guess that could be viewed as another way to have an object "learn" about 'n' input objects without connecting them explicitly in the LE. In other words, by having the object remember selections.


Using selection is very interactive which feels natural for some things. Using links feels more permanent so maybe more natural for other things.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn