Page 1 of 1

Cut() script into container. Please Help!!

Posted: 04 Dec 2013 21:03
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 1431 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 1431 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

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

Posted: 05 Dec 2013 01:37
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 . . .

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

Posted: 05 Dec 2013 01:53
by raysperanza
The name of the container is ContainerA...

Nothing in the Lemur Guide...

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

Posted: 05 Dec 2013 02:12
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.

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

Posted: 06 Dec 2013 00:16
by raysperanza
:o
Love!!!!

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