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

Help Converting linked blocks to embed blocks and and collapse

$
0
0

Hi all!

I have a problem with a python script.
I need to convert all the blocks in the file to embedded blocks, collapse them ( remove any nested block)

this is the code I am using at the moment: testing blocks.py (1.7 KB)

It works most of the times, except when the linked blocks have clipping planes inside, in that case I get this error: " Add currently does not support clipping planes."

the issue is in the in flatten def, line 53

I guess I have to remove the clipping planes from the list of objects (gids), but so far I have had no luck…

another info: the script will be launched from command line and I cannot interact with the file, there must be no input from the user

thanks in advance to anyone who tries to help me

@pascal maybe? :smiley:

Best

Andrea

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles