question

zb avatar image
0 Likes"
zb asked Phil BoBo edited

hide cap of pill bottle

I am using a pill bottle as a flow item in a model. Is there a way to hide the cap of the pill bottle and make it appear again once a specific task is executed?

FlexSim 22.0.0
flow itemshide featurepill bottle
5 |100000

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

Phil BoBo avatar image
2 Likes"
Phil BoBo answered Phil BoBo edited

You can use the Customize Shape window to hide, re-color, or re-texture the sub-meshes of a shape:

1640131079666.png

Attached is a sample model demonstrating using this feature along with frames to be able to dynamically change the shape at certain points during the model run.

pill_bottle_frames.fsm

pill-bottle-frames.gif

The Pill Bottle flowitem has a Base Frame that is the regular pill bottle shape and a "No Cap" Frame 1 that is that same shape, but customized to hide the cap. Then you can switch between them with the Visual > Change Shape Frame pick option, as demonstrated on the Processor's triggers.


· 6
5 |100000

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

zb avatar image zb commented ·

I was able to create a pill bottle without a cap. However when I am struggling with adding a trigger that switches between the pill bottle with the cap and the pill bottle without the cap. When I go to select the frame it only says "Base Frame" and not two separate pill bottles. What am I missing?flexsim-2021-for-education-commercial-use-prohibit.pngflexsim-2021-for-education-commercial-use-prohibit.png

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ zb commented ·

The first image just showed how to customize a flowitem's shape in general.

The attached model showed how to combine that feature with shape frames to dynamically change the shape during the model.

Add a frame to your object's shape:

1640202943543.png

Look at the attached model. That's why I attached it.

0 Likes 0 ·
1640202943543.png (18.5 KiB)
zb avatar image zb Phil BoBo ♦♦ commented ·
I looked at the model and I attempted to add a frame. When I do it gives me a box instead of a pill bottle. That is where I am stuck.
-1 Like -1 ·
Show more comments
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered zb commented

You can change the shape to one without a cap - you can edit some of the shapes in AC3D, Blender or a similar 3D modelling tool.

· 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.

zb avatar image zb commented ·
Is there a way to do this within Flexsim?
0 Likes 0 ·