Collapse Editor Button
Need a button to hide the editor.
instead of changing position, rotation, or scale, I want to emit an event to an event listener somewhere else, so if I have const car = new Car();
car.addEventListener( 'start', function ( event ) {
alert( event.message );
} );
car.start();
the event emission is car.start()
how can I get car.start() to fire off within a keyframe?
You can write whatever JavaScript you want inside a key frame. So just set up you event listener in your webpage’s JavaScript and then call car.start() inside a key frame.
On Sun, Nov 8, 2020 at 6:06 PM n5ro [email protected] wrote:
instead of changing position, rotation, or scale, I want to emit an event to an event listener somewhere else, so if I have const car = new Car();
car.addEventListener( 'start', function ( event ) {
alert( event.message );
} );
car.start();
the event emission is car.start()
how can I get car.start() to fire off within a keyframe?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gridwalk/codekeyframes/issues/1#issuecomment-723712677, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY4RYRM64J4KK6OQ6BA7E3SO5FDZANCNFSM4FPPHFUA .
-- Don Hanson https://d0n.xyz
I want to have the ability to flip in between tracking an mp3 to tracking a video, to tracking other tracks audio or video. In the course of telling stories sometimes I might want to pause an audio track, to play a video, or if it's a live presentation I might want to switch tracks to different audio or different video. I haven't figured out yet how I am going to be doing that but I've been thinking about it a lot. Is this already possible with codekeyframes?
That would only be possible with multiple instances. It’s designed so one instance is one audio/video file. So maybe that means multiple tabs and webpages or multiple iframes embedded to a single page...
On Sun, Nov 8, 2020 at 7:56 PM n5ro [email protected] wrote:
I want to have the ability to flip in between tracking an mp3 to tracking a video, to tracking other tracks audio or video. In the course of telling stories sometimes I might want to pause an audio track, to play a video, or if it's a live presentation I might want to switch tracks to different audio or different video. I haven't figured out yet how I am going to be doing that but I've been thinking about it a lot. Is this already possible with codekeyframes?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gridwalk/codekeyframes/issues/1#issuecomment-723739275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY4RYRLY7SNUA5M4KSHKK3SO5R53ANCNFSM4FPPHFUA .
-- Don Hanson https://d0n.xyz
So my specific example idea would not work with one instance. Separate but similar sounding question. In general is it possible to play a muted audio file (used for tracking) and separately run another audio file (not used for tracking in this program, just playing elsewhere in the page) or another video (just playing elsewhere in the same page at the same time as the muted audio that is being used to keep the key frames aligned, because then I could use keyframes to start and stop other audio video devices in theory)
-- Sincerely,
Micah Blumberg 3+ years webxr code experience, 5+ years virtual reality & technology journalist, he/him
Silicon Valley Global News (Science & Technology Journalism) and VRMA.io Virtual Reality Magazine (WebXR based news), http://svgn.io
Github github.com/n5ro github.com/micah1 http://github.com/n5ro
The Aframe WebXR Online Hacknight & San Francisco Virtual Reality https://www.meetup.com/virtualreality/events The Neural Lace Podcast, and some featured articles http://vrma.io
Facebook: https://www.facebook.com/worksalt Twitter: https://twitter.com/worksalt instagram: https://www.instagram.com/micahsun/ linkedin: https://www.linkedin.com/in/worksalt/ Oculus: cloudmicah
On Sun, Nov 8, 2020 at 8:00 PM Don Hanson [email protected] wrote:
That would only be possible with multiple instances. It’s designed so one instance is one audio/video file. So maybe that means multiple tabs and webpages or multiple iframes embedded to a single page...
On Sun, Nov 8, 2020 at 7:56 PM n5ro [email protected] wrote:
I want to have the ability to flip in between tracking an mp3 to tracking a video, to tracking other tracks audio or video. In the course of telling stories sometimes I might want to pause an audio track, to play a video, or if it's a live presentation I might want to switch tracks to different audio or different video. I haven't figured out yet how I am going to be doing that but I've been thinking about it a lot. Is this already possible with codekeyframes?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/gridwalk/codekeyframes/issues/1#issuecomment-723739275 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAY4RYRLY7SNUA5M4KSHKK3SO5R53ANCNFSM4FPPHFUA
.
-- Don Hanson https://d0n.xyz
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gridwalk/codekeyframes/issues/1#issuecomment-723740245, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALABUCK6BXR3JPZTET3FLK3SO5SOVANCNFSM4FPPHFUA .
Hi Micah, yes in theory that would work. You can always load a silent mp3 and just use that as a timeline interface for triggering other things on the page.