Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

random glass color in Revit using Dynamo

4 ANTWORTEN 4
Antworten
Nachricht 1 von 5
Anonymous
730 Aufrufe, 4 Antworten

random glass color in Revit using Dynamo

Hi,

attaching a screenshot.

I received a dyn script from somebody for randomizing glass color, tried using it in my project and it wouldn't work. I'm new to Dynamo, first script. I think it has to do with the parameter name (Element.SetParameterByName)- the code block attached to the paramter name. What exactly do i need to fill for a parameter name?

Once this is fixed, is there a way to f.e to have 60% of one color 20% of another and so on?

4 ANTWORTEN 4
Nachricht 2 von 5
barthbradley
als Antwort auf: Anonymous

Did you abandon your other thread? Can I squat on it?  

Nachricht 3 von 5
gsucci
als Antwort auf: Anonymous

Hi,

 

when I did this I used to randomize the curtain panel types.  So, instead of materials, you would random shuffle panel types (each type has a different material, of course).

 

In your script, please expands all data going through your nodes, and the error message you are getting, otherwise it's difficult to see what is going on.

 

On top of my head, I think you are trying to change the material of a curtain panel type, which is useless if you only have one type of panel on your model (all your glass will change at once, depending on the last material you assigned to the type).

 

Also, "Material" should be a type parameter, so I am not sure it will work if you feed it instance elements, as you are.

 

If Material was an instance parameter, then your approach would make more sense.

 

Regards

 

gio

Nachricht 4 von 5
Anonymous
als Antwort auf: barthbradley

no, didn't abandon it but i hope they both get answered. here i got further a bit with an actualy dyn script. i'm still alive in both of them :leicht_lächelndes_Gesicht:

@barthbradley 

Nachricht 5 von 5
barthbradley
als Antwort auf: Anonymous

That's better. I approve.  That's the decent thing to do.  

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report