- Campbell Barton changed review status to Awaiting Changes
- 1 mo
This fails because of absolute imports from ChannelDataBaker
.
Relative imports must be used instead.
The prototype of the plugin is ArtStation - Blender Addon - UVs/VCol Data Baker
The original author's plug-in is very rich in functions, and if you are interested, you are also welcome to support the original author's plug-in
This plugin is a version of the Axis Baking feature that replicates the original plugin, as I wrote about it before I used the other features
The main purpose of the plug-in is to solve the problem that when making multi-pivot objects such as plants, the pivot of the merged objects is lost and cannot be operated separately
The xyz axis information can be manipulated independently, and the specific axis information can be actively selected to be written to the selected channel If you are using the vertex color mode vCol , you need to input the automatically calculated Pivot X Scale values into the decompression calculation process at the same time, and the Blender file provides a GeometryNode as a demonstration of the decompression calculation
AB Pack
[-1,1]
.XY
, XZ
, YZ
, compress it with specific precision, and write it to the selected channel. The original author's version supports selecting any two channels for combination, but since unconventional combinations like XX
, YY
, YX
are not needed, and you can adjust the channel combination when decompressing, so three commonly used combinations are enumerated during compression.PackTwoNormalizedFloats
and UnpackTwoNormalizedFloats
, with the difference that during compression, a range mapping from [-1,1]
to [0,1]
is performed, and the reverse calculation is needed during decompression.About decompression, you can use this method:
def float_to_vec2(input_float, precision):
x = input_float // precision
y = input_float % precision
output = (x / (precision - 1) * 2 - 1, y / (precision - 1) * 2 - 1)
return output
[-1,1]
.Used to obtain the extreme value of the x-axis of the currently selected object, as a scaling parameter for compression and decompression of data in the vertex color channel. This value will be automatically updated each time it's baked, or can be manually updated using this button.
Implements the operation of assigning values from 0 to 1 to the target axis of the collision box of the currently selected object, which can be switched between world coordinates or local coordinates, and can be written to the vertex color or UV channel.
Deletes UV channels with names containing pos_UVMap
from the selected objects.
Deletes vertex color channels with names containing pos_vcolor
from the selected objects.
Enter the attribute name you want to activate in the input box, select the objects, and click the button to activate the corresponding attributes in batch. The activated attributes can be viewed in Attribute mode in the Solid rendering state.
Sets the pivot of the batch-selected objects to the center of the selected elements of each object itself in edit mode, rather than the center of all selected elements.
This extension does not require special permissions.
This fails because of absolute imports from ChannelDataBaker
.
Relative imports must be used instead.
This extension has a pending activity. I'm manually pinging this since the site didn't have a notification system back then (it does now o/).
We've added new mandatory fields: Featured Image and Icon. Featured Image is shown at the home page instead of the first preview image, and icon is shown in the extension's title (and later will be shown in Blender as well).
Could you please update your extension with an icon and a featured image?
Apologies for the late heads up.
Sign in to comment.