Preserve UV Mapping On Imported Blocks?

Hi @scottd & @AndyPayne ,

I could have sworn it was possible to import a Block Definition in Grasshopper, read it’s materials, and retain it’s UV material mapping and then apply that forward to actually rendering said block instance?

I can explode the block def here and extract the Model Materials but the UV coordinates get messed up:

Expectation (Sketchup Preview with UV Mapping intact)

Grasshopper Custom Preview Result:

If this isn’t possible with Grasshopper, can I use Rhinocommon and File IO to achieve this?

I have to convert 1000s of blocks from Sketchup → Rhino and I’m really trying to avoid having to re UV map all of these… aka I don’t have the time for that. The geometry itself is fine at least and imports pretty well.

Another example:

and one more (materials rotated 90 degrees?)

I’m attaching a couple .skp files for testing to this post:

NATURAL+OAK+SHAKER+MICRO+CAB.skp (1.5 MB)

made_goods_cermaic_stool_01b.skp (9.9 MB)

monologue_london_cassette_armchair_01a.skp (9.1 MB)

four_hands_bea_stool_01a.skp (3.6 MB)

Grasshopper testing script:

FUNCTION_Dynamic_Block_Import_With_Materials.gh (11.3 KB)

Thank you for your help!

Hold UvData on UserStr ?

Hi @michaelvollrath,

Material mapping and textures in general were added in V9 that is currently in WIP and you can use freely while is under development.

Could you please exact test same workflow with it?