Grasshopper

algorithmic modeling for Rhino

Dear Grasshopper Users

I am trying to make a grasshopper definition.

I need to arrange the visiblity of the objects within a specific layer / sublayer

AND

I need to arrange the object display mode.

Any help would be highly appreciated!

Thanks!

Views: 2329

Replies to This Discussion

Objects that are in Grasshopper are not on any layer in Rhino unless you bake them. The display mode is also not controllable from Rhino. You can adjust the shading of Grasshopper geometry inside Grasshopper using the shading icons in the top right corner of Grasshopper or using the custom preview component. If you need to dynamically bake geometry from Grasshopper to different layers, you can do that with plugins like Elefront, Lunchbox or FabTools.

What I do a lot is use one of those to dynamically bake geometry to a preview layer which updates with Grasshopper, but is full geometry in Rhino.

it's a finished model
I'm just trying to turn on and off the layers

Just bake it on to separate layers and then use the layers panel in Rhino. If you right-click on a component and choose Bake.. you can select which layer to bake it on to. If you middle-click and select bake (the fried egg) it will simply bake it on to the active layer.

The display mode can only be changed per viewport but not per layer.

Hope that helps.

i understand what you describe but it is not quite useful for me at the moment. 

I will try to find another way around...


Thanks

I am still not sure what it IS that you are trying to do. Can you explain it better or show some screenshots?

well okay

I have a tip to toe finished model. 
I have to make 3D installation sequence video.

I have the "tags" of each object and installation dates + duration time.

I dont wanna bother myself arranging views one by one. I want to automate all and leave my computer on and thats it.

Mean while some objects must have different display modes just for sake of clarification - like gosted / shaded blah blah.

i understand what you mean by "dynamic baking with EGG ICON"

i can bake them with a counter also... but i dont wanna do it! 
if you have any idea - how can i set the layer ON / OFF status and object (not display) modes by some VB or C thingies or any plugins maybe...


REGARDS!

Okay, I am starting to understand. I am not aware that you can change the shading mode per layer or object. But then I am not a Rhino Pro, mainly use Grasshopper.

A while ago I saw a video where someone animated the layer transparency to show and hide objects in an assembly animation right in Rhino, but I cant find it any more.

You can bake the material from GH though, so you could make something more transparent and then it can get less transparent over time. If you set it all up you could then make a rendered animation. The baking is only for each frame and gets overwritten by the next frame after it is rendered. I am not sure how you would render without baking?

one way or another there must be a way - still im searching after it as i am fixing some things...

anyway - if i can find it i will let you know :) 

cheers!

ahhh.. one more thing it can be done by macros - which is something i am not good at.

if i can crack into it a bit
the rest is easy busy!

nice day ahead!

Some thing like

Sub Main()
Dim strLayer

strLayer = Rhino.GetString("00.GRIDS")

If Rhino.IsLayer(strLayer) Then

If Rhino.IsLayerOn(strLayer) Then

Rhino.Print "The layer is on."

Else

Rhino.Print "The layer is not on."

End If

Else

Rhino.Print "The layer does not exist."

End If


End Sub

but not working properly IDK why

for instance....

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service