Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5800

Rhino script change selected objects variables

$
0
0

@bigonethegod wrote:

I am new to rhinosrcipt and i am trying to create small script that changes attributes of selected blocks objects.
That is how i see this but it didnt work out)

arrObjects = rhino.SelectedObjects
For Each strBlock In arrObjects
arrBgeo = Rhino.BlockObjects(strBlock)
Rhino.ObjectLayer arrBgeo, “Furniture”
Rhino.ObjectMaterialSource arrBgeo, 3

Next

It have to change block objects layer and material source.

Please show me what i am doing wrong.
Thank you in advance!

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5800

Trending Articles