Forgive me if I'm misunderstanding what exactly you're looking to solve but
it just seems like a string format?
let's assume "buttons" is a dictionary with keys relating to the option
name with the value of the given buttons in relation to the state that you
mentioned in your GUI that you'd have to write a case switcher for probably.
options_string = "; ".join(["-{LBL} {VAL}".format(LBL=label,
VAL=buttons[label]) for label in buttons.keys()])
pmc.exportSelected(export_file, f=1, type='ASS Export",
options=options_string)
On Tuesday, May 3, 2016 at 6:55:19 AM UTC-4, crazygamer wrote:
>
> Regarding batch exporting Arnold .ass files using python. I have already
> written a tool which batch exports selected objects in Maya to separate
> .ass files using predefined options. This works great.
>
> Now what I want is to give the user checkboxes in the UI to select the
> options of arnold export (the same which are there in Maya ass export
> options - lights, cameras, shapes, shaders etc)
>
>
> Something like this:
>
>
> <https://lh3.googleusercontent.com/-5u3j5dmiB6Q/VyiDDlklqZI/AAAAAAAAMe8/6PmKKe7q-sMd7U-idx4ATRdzHBuUOknJACLcB/s1600/arnold_options.png>
>
>
> The thing is: the current command takes a string for options.
>
> pmc.exportSelected(export_file, f=1, typ="ASS Export",
> options="-mask 8;-lightLinks 0;-compressed;-boundingBox;-shadowLinks 0")
>
> And the "mask" int changes based on options selected. Can anyone help me.
>
>
> *note: pmc is pymel*
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/cb700fbd-6fa6-4a23-9d1e-0319d35cab7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.