Skip to content

Instantly share code, notes, and snippets.

View killiantimsit's full-sized avatar

Killian Timsit killiantimsit

View GitHub Profile
@killiantimsit
killiantimsit / wrangle-attr---delete-small-floating-pieces-numprim-assemblesop.c
Created November 16, 2017 20:52
Houdini - Attribute Wrangle VEX - Delete small floating pieces by number of primitives (Assemble SOP)
// Houdini - Assemble SOP > Attribute Wrangle SOP
// Delete small floating pieces by number of primitives
//
// To be used inside the VEXpression parameter of an Attribute Wrangle SOP
// with the "Run Over" mode set to "Detail (only once)".
// The geometry must be assembled first using an Assemble SOP
// with the "Create Packed Geometry" option disabled
// and the "Output Prefix" set or linked to assemble_output_prefix.
//string assemble_output_prefix = chs('../assemble1/outside_group');
string assemble_output_prefix = 'piece';
@killiantimsit
killiantimsit / wrangle-attr---delete-small-floating-pieces-sizebbox-assemblesop.c
Created November 16, 2017 20:53
Houdini - Attribute Wrangle VEX - Delete small floating pieces by bounding box sizes (Assemble SOP)
// Houdini - Assemble SOP > Attribute Wrangle SOP
// Delete small floating pieces by bounding box sizes
//
// To be used inside the VEXpression parameter of an Attribute Wrangle SOP
// with the "Run Over" mode set to "Detail (only once)".
// The geometry must be assembled first using an Assemble SOP
// with the "Create Packed Geometry" option disabled,
// "Create groups" option enabled,
// and the "Output Prefix" set or linked to assemble_output_prefix.
//string assemble_output_prefix = chs('../assemble1/outside_group');
@killiantimsit
killiantimsit / wrangle-attr---delete-small-floating-pieces-numprim-connectivitysop.c
Created November 16, 2017 20:54
Houdini - Attribute Wrangle VEX - Delete small floating pieces by number of primitives (Connectivity SOP)
// Houdini - Connectivity SOP > Attribute Wrangle SOP
// Delete small floating pieces by number of primitives
//
// To be used inside the VEXpression parameter of an Attribute Wrangle SOP
// with the "Run Over" mode set to "Detail (only once)".
// The Attribute Wrangle SOP must be placed after a Connectivity SOP
// with the "Connectivity Type" set to "Primitive"
// and the "Attribute" set or linked to connect_attr.
//string connect_attr = chs('../connectivity1/attribname');
string connect_attr = 'class';
@killiantimsit
killiantimsit / klts-joints-weights-ar-cleanup-20190214.py
Last active February 14, 2019 13:19
MAXON Cinema 4D - Clean up joint's weights for AR compatibility
# MAXON Cinema 4D
# Clean up joint's weights for AR compatibility
#
# This script will set to zero the weights of all but 4
# joints/bones for each point in the selected Weight tag.
# As a result, the weights will be unnormalized. So you'll
# probably want to normalize all weights after using this
# script.
#
# NB: The weights table in the Weight Manager UI tab