Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Make part with conditional transparency?

vanowmvanowm Member Posts: 31

Hello.

Is there a way make a part transparent based on configuration (aka add a checkbox to make a part transparent or not)? (via appearance or transparency feature)

Thank you.

Comments

  • Alex_KempenAlex_Kempen Member Posts: 251 EDU
    edited May 3

    FeatureScript's setProperty with PropertyType.COLOR can set both the RGB and alpha (opacity) of a part, although that workflow will of course be for part studios only.

    Software Developer at Epic Systems
    FRC Design Mentor - Team 1306 BadgerBots


  • EvanReeseEvanReese Member, Mentor Posts: 2,373 ✭✭✭✭✭

    Here's an example using my Part Color feature.

    https://cad.onshape.com/documents/27db832908e005a57fa4a4b8/w/aba6a8a54c161e503412d8f4/e/8851a175a2ca12aff6660282

    May-04-2025 07-59-52.gif
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • vanowmvanowm Member Posts: 31

    Since this was asked in drawing section of the forum, not featurescript section, would you please provide little more details how to achieve this?

  • EvanReeseEvanReese Member, Mentor Posts: 2,373 ✭✭✭✭✭

    You don't need to know featurescript for my solution. Just use the Part Color feature and configure the alpha value.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • vanowmvanowm Member Posts: 31

    @EvanReese thank you, this is exactly what I was looking for. Took me a minute to figure why it didn't work when I added my part to the list…evidently I had to add a "feature" to the list instead.

  • EvanReeseEvanReese Member, Mentor Posts: 2,373 ✭✭✭✭✭

    Likely because you had already manually assigned a color to the part in question. Once it's been done manually it overrides changes made by a feature unless you go to part properties and click the blue button to reset them. Selecting a feature actually chooses the faces associated with that feature.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
Sign In or Register to comment.