-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to dynamically load different xml settings files #145
Comments
You mean dynamically load another xml file? There is the function |
Yes I tried calling loadProject in my ofApp.cpp, but it freezes everything and I have to reboot my pi. I can't even get back to the command interface to see the debug messages so it's hard to tell where exactly the problem occurs. And I don't even use videos in my mapping, there are just images |
Yes, I guess that is a valid issue. The thing with pressets is that you can store multiple projects in one xml file. You could try that approach. You just have to add another |
Oh ok thanks, I will look into it. I guess I can switch between presets with the setPreset() method ? |
Yes. |
is possible to have this "function" in the example? (so if i press 7 i load preset 1, 8 load preset 2 ecc..?) |
Here, I can give you my ofApp's keyPressed method for an example. You just have to have several surfaces which contains your configurations in your ofxpimapper.xml
|
Yes, this is how it is meant to be. One can override internal ofxPiMapper shortcuts. |
yes... a feature could be to have a "config file" in witch are defined the
keys and could be reconfigured.
thx
Pietro Capriata
http://www.pietrocapriata.me
CONFIDENTIALITY DISCLAIMER
Le informazioni contenute in questo messaggio di posta elettronica e negli
allegati sono riservate e confidenziali e ne sono vietate la lettura,
l'uso, la copia, la comunicazione e la diffusione in qualunque modo
eseguite. Qualora lei non fosse la persona destinataria del messaggio, la
invitiamo ad eliminarlo, dando gentilmente comunicazione al mittente
tramite e-mail di ritorno.
The information contained in this email message and any files transmitted
with it are confidential and privileged and any reading, processing,
distribution or copy of this material is strictly prohibited, in any form.
If you are not the intended recipient of this message, please immediately
delete it, giving the relevant communication to the sender by reply e-mail.
…On Thu, May 24, 2018 at 10:42 AM, Krisjanis Rijnieks < ***@***.***> wrote:
Yes, this is how it is meant to be. One can override internal ofxPiMapper
shortcuts.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#145 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFzIlnmePQQfaDNA-eOtWq-bUe4xidIYks5t1nJxgaJpZM4T_6jr>
.
|
You can also take a look at the example_pocketvj ofApp.cpp and use that to remap your keys. But I would prefer the config file solution proposed by @pietrondo myself. |
Hi,
I would like to know how I can dynamically change the xml settings file. I would basically like to change some surfaces and sources when I press a button. Is there a way to easily do that ? I saw that there is a preset system too but I'm not really sure what it does and how it works.
Thank you in advance for your response, you did a great job on this project !
The text was updated successfully, but these errors were encountered: