algorithmic modeling for Rhino
is it possible that modify and add LayerState Using RhinoCommon? i want to save current layer states and change states using RhinoCommon.
With that, i think i can make some convenient layer plugins..
i searched Rhinocommon SDK, but there no class like LayerStateManager..
Tags:
i have one more question about layers..
i don't know what's wrong in this code, it seems right, but doesn't work at all...
Rhino.DocObjects.Tables.LayerTable lt = doc.Layers;
Print(lt.ActiveCount.ToString());
for(int i = 0 ; i < lt.Count ; i++){if(lt[i].LayerIndex != lt.CurrentLayerIndex){
if(!lt[i].IsDeleted){
Print("LayerIndex : {0}, CurrentLayerIndex : {1}", lt[i].LayerIndex, lt.CurrentLayerIndex);
lt[i].IsVisible = false;
lt[i].CommitChanges();
}
}
}
Hi Taehyuk,
is this in any way related to Grasshopper? Or just a generic RhinoCommon question?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by