Troubleshooting

Cut() script into container. Please Help!!

Started by raysperanza on .

Sign in or create an account to join the conversation.

5 posts

Topic starter
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

------------------BUT---------------------
IF i move custombutton out of the container, it isn't able to work.

Schermata 2013-12-04 a 21.00.16.png

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
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 . . .
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.