Comments (4)
We have a method under Scene class called searchAllForItemName
, which I think is roughly similar to the function that you wanted to create, just that instead of searching by custom name, it would search by the actual name (prop:name).
I guess we could consider adding a method like searchAllForItemCName
(or something along that line) or add a parameter on searchAllForItemName
for searching by custom name rather than the actual name. (mentioning @Matrim-Cauthon and @SML-MeSo for your thoughts on this one if you guys think it's worth implementing)
There's a speed impact on using these methods since it basically iterates through all Scenes and would fetch all items within each scene, and then fetch the name using getName
method. So the 'speed' of the method would most likely depend on how many items are placed on your scenes.
Also, please do note that we do not currently have any Flash Item object/class. What these translate to is that flash items would implement the base Item
class, which does not have the setVisible
method. We noticed that feature missing after releasing 0.7.0 version. But don't worry, we'll be releasing the next version that would include the FlashItem
subclass ;)
from xjs.
add a parameter onsearchAllForItemName for searching by custom name rather
than the actual name
Definitely needed to be able to find items by custom name. Perhaps you may
also just consider that if cname is there then it replaces name
On Thu, Oct 8, 2015 at 2:36 PM, Daniel Cefram Ramirez <
[email protected]> wrote:
We have a method under Scene class called searchAllForItemName, which I
think is roughly similar to the function that you wanted to create, just
that instead of searching by custom name, it would search by the actual
name (prop:name).I guess we could consider adding a method like searchAllForItemCName (or
something along that line) or add a parameter on searchAllForItemName for
searching by custom name rather than the actual name. (mentioning
@Matrim-Cauthon https://github.com/Matrim-Cauthon and @SML-MeSo
https://github.com/SML-MeSo for your thoughts on this one if you guys
think it's worth implementing)There's a speed impact on using these methods since it basically iterates
through all Scenes and would fetch all items within each scene, and then
fetch the name using getName method. So the 'speed' of the method would
most likely depend on how many items are placed on your scenes.Also, please do note that we do not currently have any Flash Item
object/class. What these translate to is that flash items would implement
the base Item class, which does not have the setVisible method. We
noticed that feature missing after releasing 0.7.0 version. But don't
worry, we'll be releasing the next version that would include the
FlashItem subclass ;)—
Reply to this email directly or view it on GitHub
#9 (comment).
from xjs.
Makes sense, we'll include that on the next version :)
That enhancement/method update will be tracked on issue #10
from xjs.
It appears that the question has been addressed now, so I'll be closing this item.
Changes/updates to the framework relevant to this question will be found at #10 (and possibly #22).
from xjs.
Related Issues (20)
- Issues with case sensitive matching HOT 1
- Allow `duplicate` item calls to return UIDs of newly added sources
- Expose method to refresh source on show and on scene enter
- Fix documentation
- OnAsyncCallback should handle more than two parameters
- Typescript type definitions HOT 1
- Ability to copy presets
- Provide event callbacks for presets
- How to get source id for item HOT 5
- Set 'play on source show' on media items HOT 1
- Bug ActionAfterPlayback; wrong constants HOT 1
- Bug: isVideo returns false on looping videos
- getPlaybackDuration only works for active scene HOT 1
- Race condition for isVisible (and possibly more checks) HOT 1
- from php script i want to change dynamically source media HOT 3
- Apply new audio changes to XJS HOT 2
- Xsplit Broadcaster extension store
- Stream and recording start/stop event notification HOT 4
- Unable to get name of Scenes HOT 5
- Which kind of format must be? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xjs.