Bring to Front/Back Command

Joe's icon

Hi guys

Is there any way to control the 'bring to front' and 'bring to back' commands via message? Rather than using the ctrl shift F/B?

It is for two fpic, which are positioned on top of each other

all the best

spectro's icon

I don't think so. Depending on what you need to achieve however - it might be possible by using the fpic transparency (alpha) attribute(?)

vichug's icon
Max Patch
Copy patch and select New From Clipboard in Max.

you can, using [thispatcher]
it's in the [p moreScripting] subpatch from the helpfile

Joe's icon

Hey thanks for that

I tried connecting your method to the two fpics, but I had no luck in getting them to work. I was a bit unsure on the actual type of connection, whether the thispatcher was required or not so I made two versions.

If you could take a peek that would be great, thanks

Max Patch
Copy patch and select New From Clipboard in Max.

vichug's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this is not how it works : [thispatcher] needs a target object which has a scripting name - set in the object's inspector

Joe's icon

thank you

sorted