Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Comments
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.
FRC Design Mentor - Team 1306 BadgerBots
Here's an example using my Part Color feature.
https://cad.onshape.com/documents/27db832908e005a57fa4a4b8/w/aba6a8a54c161e503412d8f4/e/8851a175a2ca12aff6660282
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Since this was asked in drawing section of the forum, not featurescript section, would you please provide little more details how to achieve this?
You don't need to know featurescript for my solution. Just use the Part Color feature and configure the alpha value.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
@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.
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.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com