Cut() script into container. Please Help!!

Discuss problems and solutions.
Post Reply
raysperanza
Newbie
Posts: 10
Joined: 04 Dec 2013 20:34

Cut() script into container. Please Help!!

Post by raysperanza »

Hi there,
I need a custom button able to set a x value;

with this exspression in a custombutton:

Cut()
on exspression

FaderA.x=1

:i'm controlling easly Fader A.
Schermata 2013-12-04 a 20.49.45.png
Schermata 2013-12-04 a 20.49.45.png (13.84 KiB) Viewed 1432 times
------------------BUT---------------------
IF i move custombutton out of the container, it isn't able to work.
Schermata 2013-12-04 a 21.00.16.png
Schermata 2013-12-04 a 21.00.16.png (13.73 KiB) Viewed 1432 times
Basically i don't know how to write it.
I tried i some many ways..... but i don't know phyton....

I hope someone can help me.

Thank you very much
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Cut() script into container. Please Help!!

Post by Macciza »

Hi
I think you need to have a look through the manual - See Section 6.9 Using Containers . ..
Addressing objects is all about where they are in the hierarchy of your project . . . Whats your Container called??
Also I'm guessing you meant Python? Python has nothing to do with any of this . . .
Lemurs scripting language is roughly C-based . . .
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]
raysperanza
Newbie
Posts: 10
Joined: 04 Dec 2013 20:34

Re: Cut() script into container. Please Help!!

Post by raysperanza »

The name of the container is ContainerA...

Nothing in the Lemur Guide...
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Cut() script into container. Please Help!!

Post by Macciza »

Hi
Did you look at the Section I mentioned??
Note that the use of Containers also has implications for the Variable addresses of Objects living inside of the Container. Indeed, within the Container, the local names of both objects are still the same. From the outside however, there are now known as RatherInteresting.ILoveButtons and RatherInteresting.SoFunny respectively.
Objects in Containers rely on their position in the file hierarchy for there name.
Inside the container - FaderA.x works - outside the container - ContainerA.FaderA.x works. . . .

Also simply looking through other Projects will generally show you basic things like this . . . and to see how others have done it.
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]
raysperanza
Newbie
Posts: 10
Joined: 04 Dec 2013 20:34

Re: Cut() script into container. Please Help!!

Post by raysperanza »

:o
Love!!!!

thank you very much!!!! You are a good person!!! :D
Post Reply