opening a form w/ perl


#1

i’m trying to open a form with a perl script. here’s what i’ve tried so far:

lx(“attr.formPopover [69325948995:sheet]”);

and

lx(“attr.formPopover “Custom Controls””);

“Costum Controls” is the name i’ve given to the form in the form editor. the hash number is the number that comes up in the key editor when i assign the form to a key.

when i launch either of these from the command line (minus the perl syntax) they work.

any help would be great, thanks.


#2

bump

i think someone out there has to have some experience w/ this or knows the answer.

lux code-slingers, maybe?

thanks for any help


#3

Check the event log viewport for errors. I believe I made attr.formPopover a QUIET command, meaning it doesn’t show up in the history. For some reason, we decided they couldn’t be used in scripts/macros, either. I’ve since removed that limitation, but not for 102.

– Joe


#4

joe,

thanks for the reply. i don’t see any errors in the event log. just so i understand, are you saying that command cannot work from a perl script or macro?


#5

Right; if it doesn’t show up in the history, it can’t be used in a script (so called QUIET commands; again, it’ll be fixed in a future version).

– Joe


#6

joe,

thanks again for the reply. i could have been banging my head against a wall for months trying to figure that out. glad to hear that will be added in the future.

in the meantime i have found a work-around. my original idea was to open different forms from the perl script based on the selection type. instead i have re-assigned the selection keys (1,2,3) to perl scripts that change the selection type and then re-assign a hotkey to a different form here’s the command i’m using:

lx(“cmds.mapKey “hotkey” {attr.formPopover “name of form”}”);

now when i switch selection modes my hotkey pops up a different form.


#7

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.