Remote script question

Questions and discussion about building and using Max for Live devices
Post Reply
dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Remote script question

Post by dataf1ow » Sat Nov 14, 2015 11:56 pm

I know this isn't the proper forum, but I couldn't find another place to post.
I am making a script for a foot controller that is a one clip session ring. I have successfully implemente navigation, clip launching arming etc. I even subclassed the session component to add an undo, and a metronome button. But I can't seem to get a delete function going. It seems like it should be the same form as creating the launch button, but no dice so far, and I'm getting no errors from the log file, so I am a little stumped. I'm not sure if there's something else I need to do.

Here's the code segments of interest, the top one functions, the bottom doesn't:

self.session.scene(0).clip_slot(0).set_launch_button(ButtonElement(is_momentary,MIDI_CC_TYPE,CHANNEL,110))
self.session.scene(0).clip_slot(0).set_delete_button(ButtonElement(is_momentary,MIDI_CC_TYPE,CHANNEL,115))

Any tips/suggestions would be fantastic.

dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: Remote script question

Post by dataf1ow » Mon Nov 16, 2015 7:45 pm

I solved this by reclassing the ClipSlotComponent, and adding my own function for creating a button. Seems to work, but I don't really understand why.
:?

Post Reply