Settatribute in one-line script doesn't set anything

Discuss problems and solutions.
Post Reply
hodok
Newbie
Posts: 21
Joined: 15 Jan 2013 14:39

Settatribute in one-line script doesn't set anything

Post by hodok »

I want to lock ball moving on y axis by button, but no luck when I doing it like this(which is the most obvious way in my humble view):
Attachments
play_si.jzml
(7.02 KiB) Downloaded 50 times
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Settatribute in one-line script doesn't set anything

Post by Macciza »

Hi
That's because holdY is not an accessible attribute
See https://forum.liine.net/viewtopic.php?f ... ute#p17918 for a module to list attributes.

However the holdY field in the behaviours pane is scriptable and is a good way to do it as inspect the object reveals what it is controlled by. So putting CustomButton.x here will make it respond the that variable.
You could also use logical constructs here if you want a bit more control...

Cheers
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]
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Settatribute in one-line script doesn't set anything

Post by Softcore »

Check the Multiball behavior tab! ;)
Attachments
play_si-holdY.jzml
(6.84 KiB) Downloaded 59 times
Post Reply