SU7 posibility to save material with components?

I was looking at some of the changes to the SU Ruby API; SketchUp API Blog: What's New in SketchUp 7

One thing which caught my attention:

New “model level” callbacks in ModelObserver
def onActivePathChanged(model) { # Detect edit mode }
def onPlaceComponent(instance) { # Detect placements }
def onExplode(model) { # Detect group/component explode }
def onBeforeComponentSaveAs(instance) { # Add data on save

Would it be possible with onBeforeComponentSaveAs to save components which store the V-Ray materials along with them?

Re: SU7 posibility to save material with components?

We haven’t taken a look at the new API yet…so I have no clue.

Re: SU7 posibility to save material with components?

Does VfSU use the ruby API or do you have a different set of API to deal with?

Re: SU7 posibility to save material with components?

We only use the Ruby API. The only other thing that’s available to develop with is the In/Out SDK, which we don’t use.