Page 1 of 1
What is the Breakpoint edit attribute for?
Posted: 30 Jun 2012 20:56
by shimoda
Nowhere is this shown in the manual that I can find.
Re: What is the Breakpoint edit attribute for?
Posted: 01 Jul 2012 07:18
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
Re: What is the Breakpoint edit attribute for?
Posted: 01 Jul 2012 07:59
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
Re: What is the Breakpoint edit attribute for?
Posted: 01 Jul 2012 10:05
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.
Re: What is the Breakpoint edit attribute for?
Posted: 01 Jul 2012 12:22
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.
Re: What is the Breakpoint edit attribute for?
Posted: 02 Jul 2012 08:01
by lABl
Hey Macciza,
No problem, I thought he was asking about of Live Edit attribute, you know..my english skills
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,