Xpression Script to Manipulate List Boxes or Check Boxes

Hey all, I know this may seem simple but I’ve been searching the forums for quite some time and I can’t seem to find this. Is it possible to control Xpresssion dropdown lists in the data source tab (list box, and checkboxes). I have a project where we can maneuver quite well through our project but can’t for the life of me figure out a way to think of a script to either manipulate the list or check box for visibility.

Let’s say I have a slab and I jump to the “# of lines” tab. I’m looking to find out a way to either manipulate them with either adding one or taking one away based upon how many times I hit it. I didn’t know if it was as simple as being able to having a way to input keyboard commands in a script. I have multiple scene names so I didn’t know if having to build the visual logic for them was a simpler solution or if writing a script would be better.

I’d love to be able to have a script where I can either move up or down the list.

And I’d love to be able to have a way to check visibility be on or not.

Thanks a bunch in advance,

I am not great at this side of our scripting, but I think you want to look at having a keyboard shortcut that does:

xpSequncer.GetFocusedPuplishedObject (Get the current published object that is selected in the XPression Sequencer)

and then from xpPublishedObject you can do:

SetPropertyString

SetPropertyBool

ShowInTemplateData


And regarding navigation in the Template Data fields, make sure you check your preferences, you may want to enable Preferences > Sequencer > Take Item List > Tab Key advances through template data fields

With that enabled you can use TAB and SHIFT+TAB to navigate the fields.


(GetFocusedPublishedObject was added in XPression v10.5 BTW)