hi everyone
1)
i was wondering if its possible to control mask pins with expressions.
as far as i know (or as far i was able to figure out) it is not possible. or is it?
2)
we all use expressions and expression controls, like sliders, checkboxes and so on. my question is: does anyone know how to set an error trap when in Layer Control you select None as a layer?
it seems that i cannot even check if a selected layer is set to None, because when I try to do it i get en error message, that "layer is set to None - cannot continue".
any ideas how to check if the layer in Layer Control is selected or not?
thanks in advance
Masks and Layer Controlls
Javascript does support try and catch. I have only used that in jsx, however, not experssions. But it may be worth a try.
http://www.w3schools.com/js/js_try_catch.asp
Code: Select all
try
{
//Access your layer code goes here
}
catch (error)
{
//If an error is thrown.
alert (error.description)
}
Not possible. Requires plugins, but both toolsets are no longer available.explorer wrote: 1)
i was wondering if its possible to control mask pins with expressions.
as far as i know (or as far i was able to figure out) it is not possible. or is it?
You can try Atomic's approach, but it's a bit ineffective. It would be simpler to have a dummy layer that is used as an automated reference when nothing else is selected. Also since expressions throw errors anyways, you r custom code might not show up if it#s overruled by a higher-priority problem.explorer wrote: 2)
we all use expressions and expression controls, like sliders, checkboxes and so on. my question is: does anyone know how to set an error trap when in Layer Control you select None as a layer?
Mylenium
[Pour Mylène, ange sur terre]