Convert heights to vertex group weights #36729

Closed
opened 2013-09-15 11:36:09 +02:00 by Michel Anders · 5 comments
Member

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.66
Category: Mesh
Python: 3.2
Homepage: http://blenderthings.blogspot.nl/2013/09/height-to-vertex-weights-blender-addon.html
Script name: height.py
Dependencies: none
Author(s): Michel Anders (varkenvarken)
Status: Open
Related: 36677

%%%This scripts replaces the weights in the active vertex group to weights that represent the height.

After installation it is available in the 3dview in weight paint mode under Weights->Height

It maps the chosen coordinate (x, y or z-axis) to a weight, which will be 1.0 for the largest value encounters and 0.0 for the smallest.

These coordinates values are interpreted in either object (local) space or world (global) space.

If the the Absolute checkbox is checked negative coordinates will be treated as positive.

The mapping from minimum,maximum coordinate to [0,1] weight is normally linear, but may be influenced with the Power property.

After mapping any values less dan Low will be set to 0, any values larger dan High will be set to 1

A common use case is using the result as desity map for a particle system to populate a landscape mesh with plants for example. It might be easily combined with an vertex weight edit modifier, for example to invert the result when one wants more particles at lower heights.%%%

**Project**: Blender Extensions **Tracker**: Py Scripts Upload **Blender**: 2.66 **Category**: Mesh **Python**: 3.2 **Homepage**: http://blenderthings.blogspot.nl/2013/09/height-to-vertex-weights-blender-addon.html **Script name**: height.py **Dependencies**: none **Author(s)**: Michel Anders (varkenvarken) **Status**: Open **Related**: 36677 %%%This scripts replaces the weights in the active vertex group to weights that represent the height. After installation it is available in the 3dview in weight paint mode under Weights->Height It maps the chosen coordinate (x, y or z-axis) to a weight, which will be 1.0 for the largest value encounters and 0.0 for the smallest. These coordinates values are interpreted in either object (local) space or world (global) space. If the the Absolute checkbox is checked negative coordinates will be treated as positive. The mapping from minimum,maximum coordinate to [0,1] weight is normally linear, but may be influenced with the Power property. After mapping any values less dan Low will be set to 0, any values larger dan High will be set to 1 A common use case is using the result as desity map for a particle system to populate a landscape mesh with plants for example. It might be easily combined with an vertex weight edit modifier, for example to invert the result when one wants more particles at lower heights.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%v0.0.2 exposes the same height-to-value mapping as a vertex color as well in 3dview Paint->height
%%%

%%%v0.0.2 exposes the same height-to-value mapping as a vertex color as well in 3dview Paint->height %%%
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brendon Murphy self-assigned this 2015-09-12 13:30:04 +02:00
Member

Closing as archived.
@MichelAnders
Feel free to create a fresh task if you intend developing this in Blender.

Closing as archived. @MichelAnders Feel free to create a fresh task if you intend developing this in Blender.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#36729
No description provided.