Grasshopper

algorithmic modeling for Rhino

How do I access an object's "Casts Shadow"/Receives Shadow" properties programmatically?

I am rendering an animation using Julio Piacentino's RenderAnimation component which works just fine, but I would like to turn off the shadow properties for the baked objects.My hope is that there is some kind of property I have to set on the object, but browsing the SDK I did not find anything shadow-related.

Views: 3249

Replies to This Discussion

That'll be RDK related, plus I don't think shadow casting receiving is possible in Rhino render so it may not be exposed as a native SDK property. If you're talking about the Brazil shadow settings, then I can't even change those using only the command line. The Brazil option in the -_Properties command erroneously opens the material settings.

Thanks for the quick reply! I'm using the Rhino rendererer but since I am still new at this I don't know which are the right places to look for this. So I guess it's not possible to uncheck these two boxes via the command line (and sorry, it's a German version)?

Oh goody, haven't seen those before. Well, those are at least accessible via the command line. Whether or not you can get at those via RhinoCommon I don't know, you'll have to ask on our discourse forum I'm afraid....

Yes. You can do it from the command line.

-properties object castsShadows no receivesShadows no enter enter

Or, on German Rhino:

-_Properties _Object _CastsShadows _No _ReceivesShadows _No _Enter _Enter

Ah fantastic - that works. In the RenderAnimation I just need to add a "SelAll" command before that line and it applies it to all baked objects. Thanks!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service