What is the Breakpoint edit attribute for?

Discuss Lemur and share techniques.
Post Reply
shimoda
Regular
Posts: 60
Joined: 26 Mar 2012 19:25

What is the Breakpoint edit attribute for?

Post by shimoda »

Nowhere is this shown in the manual that I can find.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: What is the Breakpoint edit attribute for?

Post by Macciza »

Hi
Chapter 12.1 Object Reference
If edit is activated, new points can be created in real-time . . .

Further to that (upon investigation)
the Live Editing Property if set allows editing points via double-tapping
the Edit attribute if set allows editing of points via a single tap

If you set it to say Pads.x than pressing the Pad will allow you to edit the points

Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
lABl
Lemur Guru
Posts: 269
Joined: 09 Dec 2011 15:56
Contact:

Re: What is the Breakpoint edit attribute for?

Post by lABl »

the atributte is 'editable'.

setattribute(Breakpoint,'editable',x);

For example to control that with a button:

1- Create a switch (or custombutton)
2- inside create a script for example liveEdit
3- set execution with x variable.
4- insert the attribute line

setattribute(Breakpoint,'editable',x); //guessing your object is called Breakpoint

Now, if button is off, you can't add/remove new points, if button is ON you can add/remove points.

Or using a Pad as Macciza mentioned.

Is that what you're looking for?

A small advice that may be useful in this case, it to have a monitor to watch all attributes for an object, just type getattributelist(Breakpoint) in monitor value field, that will return all the attribute for that object.

Hope that helps,
Cheers,
AB
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: What is the Breakpoint edit attribute for?

Post by Macciza »

Thanks AB
Was meaning to mention that - the attribute is indeed 'editable', which alters the Live Editing property.
This gives the double-tap edit method.

The other option is the 'edit' behaviour - you can set its value to 0 or 1 or directly to something like Pads.x which will yield 0 or 1.
It gives a single-tap edit mede when enabled.

As AB points out using Monitors for debug is a powerful tool - there are some sophisticated demos of it sprinkled through out the Forum and Library.
I have a Monitor set up ready in my Library for quick info - easy to pull up and delete as needed.
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
shimoda
Regular
Posts: 60
Joined: 26 Mar 2012 19:25

Re: What is the Breakpoint edit attribute for?

Post by shimoda »

Indeed I have found monitors useful, I spent several minutes with one and the rgb/hsv functions finding some color codes to use. Several other uses yesterday for that matter. Thanks for the info, I knew about the Live editing thing, but the rest is good to know. Seems like a wiki here would be a nice asset. Would be willing to contribute.
lABl
Lemur Guru
Posts: 269
Joined: 09 Dec 2011 15:56
Contact:

Re: What is the Breakpoint edit attribute for?

Post by lABl »

Hey Macciza,

No problem, I thought he was asking about of Live Edit attribute, you know..my english skills :D

of course monitors are really useful, I always have a debug(this) main script where this is conected to Monitor.value = this;, so I can test data (if needed) from any other script, singletons or arrays, instead of typing variables/expressions/attributesdirectly in the monitor object.

Cheers,
Post Reply