Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5871

Explode Block - preserve texture mapping (rs.ExplodeBlockInstance)

$
0
0

@Czaja wrote:

I can’t find any solution to my problem - Automated exploding blocks with preserved texture mapping of the output geometry. In my example, geometry inside the block definition is using box mapping.

Approaches I tried:

  1. With the use of Grasshopper components from plugins: Heteroptera, Human, Elefront.
    I can receive internal geometry this way but without attributes. I can reassign materials but not the mapping of course.

  2. ExplodeBlock command in Rhino - manual approach gives me good results but it is manual. I could try to run Rhino command from Grasshopper with the use of "Rhino Command " component from LunchBox plugin but such an approach is far from how should it be. I would need to select geometry in the Rhino window etc.

  3. My last hope - Python.
    I used rs.ExplodeBlockInstance method
    https://developer.rhino3d.com/api/RhinoScriptSyntax/#collapse-ExplodeBlockInstance
    Unfortunately, it changes the mapping (rotates it to match world cplane and maybe does something more to it).

All of the approaches I took are visible on the screenshot and in the file that I attached.

File:
explode block.3dm (756.5 KB)

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5871

Trending Articles