question

Daniel R13 avatar image
0 Likes"
Daniel R13 asked Jeanette F commented

Library Objects Alpha Property

Hi Folks!

I was wondering if anyone knew if any of the objects in the Library tab have an alpha parameter. From what I can tell the only objects that have an alpha parameter are the items in the FlowItem Bin. Can someone confirm this for me please? Thanks!

-Dan

FlexSim 21.1.3
objecttransparentalpha
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Daniel R13, was Matthew Gillespie's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

None of the objects in the library or flowitem bin have an alpha node under their color attribute.

In 21.2, the Alpha slider always appears in the color popup and it will add an alpha node to the object if you change the alpha value:

1632758985228.png

In 21.1 and earlier that popup only shows the alpha slider if the object already has an alpha node, so you'd have to add one like with code like this:

Object processor = Model.find("Processor1");
while (color(processor).subnodes.length < 4)
color(processor).subnodes.add().value = 1.0;

1632758985228.png (92.0 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.