Comments (4)
If you want to build your model statically in code, keep extending LXModel
like before and ignore all the LXStructure
and LXFixture
stuff. Those fixtures are things that would show up in the dynamic model construction system (e.g. not via JSON file, but still via dynamically adding/removing/modifying fixture settings in the left-hand model pane).
If you pass in a LXModel
instance at constructor-time, all that stuff is ignored and your static model will be used instead. So, basically - make no changes if you prefer to stick with how it worked before.
from lx.
Though, leveraging the new LXStructure and LXFigure construcuts would allow for using the UI to tweak things and save it to the project?
from lx.
Yep - if you want to go that route, you can define your own custom LXFixture subclasses and register them. Don't pass an LXModel to the LX constructor. Your custom LXFixture type will be available to add in the left-hand Model column as a fixture type.
You probably want to subclass from LXBasicFixture
if you're using a normal protocol type (e.g. artnet/sacn). That'll automatically get you the basics. Take a look at StripFixture
to understand the basics of what your subclass needs to implement. It's mainly the methods: size()
which indicates how many LEDs are in the fixture, and computePointGeometry()
which sets the positions of the points based upon fixture geometry.
Feel free to ping w/ questions if it's not clear or working as expected.
from lx.
It's not the prettiest code, but if you'd like a working, recent example to read over: https://github.com/titanicsend/LXStudio-TE/blob/main/src/main/java/titanicsend/model/TEWholeModel.java
from lx.
Related Issues (20)
- Request for access to LXAudioOutput.mediaPath and/or playing audio via an InputStream HOT 6
- Request: Convert build to Maven or Gradle HOT 3
- Feature request: Add visual aid to heronarts.lx.color.ColorParameter HOT 8
- Delete Channel undo selection state HOT 1
- APC40 out of sync on channel add/delete HOT 1
- Tempo bug with OSC clocksource HOT 4
- LXMasterBus has an empty model, breaking effects on the master bus HOT 3
- tempoLocked Click will never .click() HOT 1
- Colloquial way to link LX build w/ LXStudio HOT 11
- Setting OSC address for parameters? HOT 4
- LXChannel.transitionTimeSecs has lowest level of 100ms HOT 1
- Storing more than 5 clips in a channel? HOT 3
- How to wait until mixer setup is complete? (LXMixer & LXChannels) HOT 1
- DDP packet size HOT 6
- Gradients using HSV2 blendMode can get jumpy when combined with oscillating colors HOT 3
- Intermittent LXAudioInput bug: 'Cannot enter synchronized block because "this.inputThread" is null' HOT 7
- /lx/tempo/beat OSC messages sending when OSC output is disabled HOT 1
- Bug in Accumulator modulator: goes infinite loop when velocity is zero HOT 2
- Views created in UI aren't saved to LXP file (disappear next time project is opened) HOT 5
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 lx.