Skip to content

Instantly share code, notes, and snippets.

Avatar

Killian Timsit killiantimsit

View GitHub Profile
@killiantimsit
killiantimsit / klts-joints-weights-ar-cleanup-20190214.py
Last active Feb 14, 2019
MAXON Cinema 4D - Clean up joint's weights for AR compatibility
View klts-joints-weights-ar-cleanup-20190214.py
# 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
@killiantimsit
killiantimsit / wrangle-attr---delete-small-floating-pieces-numprim-connectivitysop.c
Created Nov 16, 2017
Houdini - Attribute Wrangle VEX - Delete small floating pieces by number of primitives (Connectivity SOP)
View wrangle-attr---delete-small-floating-pieces-numprim-connectivitysop.c
// 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 / wrangle-attr---delete-small-floating-pieces-sizebbox-assemblesop.c
Created Nov 16, 2017
Houdini - Attribute Wrangle VEX - Delete small floating pieces by bounding box sizes (Assemble SOP)
View wrangle-attr---delete-small-floating-pieces-sizebbox-assemblesop.c
// 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-assemblesop.c
Created Nov 16, 2017
Houdini - Attribute Wrangle VEX - Delete small floating pieces by number of primitives (Assemble SOP)
View wrangle-attr---delete-small-floating-pieces-numprim-assemblesop.c
// 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';