Hello,
I want to replace the ‘7’ below with a variable integer from a chop:
project.folder+‘/images/’+op(‘null2’)[7,0]
(this is all in one line in parameter box)
regards
cod
Hello,
I want to replace the ‘7’ below with a variable integer from a chop:
project.folder+‘/images/’+op(‘null2’)[7,0]
(this is all in one line in parameter box)
regards
cod
Is null2 your CHOP? Or is null2 a DAT, and you want to control row selection with a CHOP?
If you want to replace the 7 with an int from a CHOP, you do just that:
project.folder+‘/images/’+op(‘null2’)[int(op(‘CHOP’)[0]),0]
Example attached. Point the Folder DAT at a folder full of assets for my example to work. Then you can scrub the slider to switch assets.
example.toe (4.06 KB)
thanks, that did work.
Trouble now is my network shuts off when I go up a level -I’m guessing that it has to do with relative/absolute path in my scripting .Anybody got other ideas ?
What do you mean “shuts off”?
Post your file?
I’m trying to make an example that is portable and still illustrates the issue, stand by
WHat I mean is that when I’m in my netwrk I see my scripting functioning correctly- the path is updated to the movie file that I’m after. But if I go up a level, then the Movie TOP no longer updates with the new path. I solved this temporarily by putting the CHOP that chooses a DAT cell that contains a movie title on the top level and putting some CHOP ins .
I had a similar issue with OSC in a year ago (viewtopic.php?f=27&t=4022) - when I’m on the same level as the network, everything works, but if I go up a level my network stops outputting at the render.
More curiously, if I split the view and maintain a view on that working level , then I can go up to the top level in the other window - and for some reason now the TOP’s are rendering.(i.e. if i split the view all my networks work regardless of what level I’m on, but in single view my problem network only works while I’m on the same level.
That’s strange and shouldn’t happen. Post an example.
Generally for efficiency most operators stop updating when their output isn’t contributing to the current displays, audio or other outputs, though there might be some missed cases.
If you can post an example (or email us one) we can verify whats happening.