Override colors AND transparency simultaneously

color-override
dynamo
revit
archi-lab

#1

Dear Forum,

In my Dynamo code I want to override some elements in Revit with a specific color, and some of them with a given transparency. I’ve managed to do both seperatly but I’m not able to give an element a color and a transparency at the same time. Any advice?

Thank you,

Marco


#2

Are you using Python or just Dynamo Nodes?


#3

Dynamo nodes, since I’m not familiar with a Python script.


#4

If using Nodes - each node runs separately, so one will change color, and then later the next node will deal with transparency. Both changes cannot occur simultaneously. I’m not sure if the use of nodes prevents multiple overrides. I use Python for doing this. Can you upload your script or a snapshot of it?


#5

Yes, I already thought that a python script might be necessary. Can you specify which information you exactly need, since my dynamo code is quit elaborate? Basically I have two lists, one with the elements that need to be overrided with a color and another different list with elements that need to have given transparency. Some of the elements are on both lists and need to contain a certain color and a certain transparency at the same time.


#6

I just need to see what nodes you are using. I would suggest looking at the Archilab Grimshaw package if you are not using it. It has some nodes that will allow you to deal with both transparency and color at once.


#7

Okay, I’m not using this package so I will look into that, the nodes that I’m using for the transperancy are:

And for the colors:


#8

I can’t find the node that I’m looking for in the Archilab package. Is it possible that you share your thoughts on the Python scipt method as you suggested before. And thanks a lot for your interest in solving my problem so far :slight_smile:


#9

It’s the second most popular package - you should be able to find it


#10

Actually, what I meant was that I couldn’t find the right node inside the package that combined the colors with transparency. The package I already found.


#11

Search “Override”


#12

I actually think these are OOTB on 1.3.0


#13

I would recommend using the OOTB Dynamo 1.3 nodes since I will probably deprecate nodes that are in my package. I just need to verify that OOTB does exactly what mine used to do and i will delete them.


Set Element Overrides - Transparency
Overide fill pattern in a view