ComfyUI > Nodes > ComfyUI_pytorch360convert > Roll Mask Axes

ComfyUI Node: Roll Mask Axes

Class Name

Roll Mask Axes

Category
pytorch360convert/mask
Author
ProGamerGov (Account age: 4100days)
Extension
ComfyUI_pytorch360convert
Latest Updated
2025-09-22
Github Stars
0.03K

How to Install ComfyUI_pytorch360convert

Install this extension via the ComfyUI Manager by searching for ComfyUI_pytorch360convert
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_pytorch360convert in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Roll Mask Axes Description

Roll Mask Axes node shifts mask images horizontally and vertically for precise alignment.

Roll Mask Axes:

The Roll Mask Axes node is designed to manipulate mask images by shifting their content along the horizontal and vertical axes. This operation is particularly useful for adjusting mask positions to make facial seams easier to manage or access, especially in equirectangular images used in 360-degree environments. By rolling the mask, you can effectively reposition elements within the mask without altering its overall structure, which is crucial for tasks that require precise alignment or seam removal. This node provides a straightforward method to achieve these adjustments, enhancing the flexibility and control you have over mask manipulation in your projects.

Roll Mask Axes Input Parameters:

mask

The mask parameter is the primary input for this node, representing the mask image you wish to manipulate. It should be a three-dimensional tensor, typically containing the mask data that defines which areas are to be affected or preserved in subsequent operations. This parameter is crucial as it forms the basis of the rolling operation, and its dimensions must be correctly specified to ensure proper functionality.

roll_x

The roll_x parameter specifies the number of pixels to shift the mask horizontally. This integer value allows you to move the mask content left or right, with positive values shifting it to the right and negative values to the left. The default value is 0, meaning no horizontal shift. Adjusting this parameter can help align mask features with other elements in your image.

roll_y

The roll_y parameter determines the vertical shift of the mask in pixels. Similar to roll_x, this integer value moves the mask content up or down, with positive values shifting it downward and negative values upward. The default value is 0, indicating no vertical shift. This parameter is essential for aligning mask features vertically within your image.

roll_x_by_50_percent

The roll_x_by_50_percent parameter is a boolean option that, when enabled, shifts the mask horizontally by 50% of its width. This operation is equivalent to a 180-degree rotation on an equirectangular image, effectively repositioning the mask to the opposite side. The default value is False, meaning this operation is not applied unless explicitly set. This parameter is particularly useful for quickly repositioning masks in panoramic or 360-degree images.

Roll Mask Axes Output Parameters:

Rolled Mask

The Rolled Mask output is the result of the rolling operation applied to the input mask. It is a three-dimensional tensor representing the adjusted mask, with its content shifted according to the specified parameters. This output is crucial for further processing or integration into your workflow, as it provides the modified mask ready for use in subsequent tasks or analyses.

Roll Mask Axes Usage Tips:

  • To achieve a seamless transition in equirectangular images, consider using the roll_x_by_50_percent option to quickly reposition the mask by half its width.
  • Experiment with different roll_x and roll_y values to fine-tune the alignment of mask features with other elements in your image, ensuring optimal results.

Roll Mask Axes Common Errors and Solutions:

"mask should have 3 dimensions, got <number>"

  • Explanation: This error occurs when the input mask does not have the expected three dimensions, which is necessary for the node to function correctly.
  • Solution: Ensure that the input mask is a three-dimensional tensor. Check the dimensions of your mask and reshape it if necessary before passing it to the node.

Roll Mask Axes Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_pytorch360convert
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.