ComfyUI_3dPoseEditor icon indicating copy to clipboard operation
ComfyUI_3dPoseEditor copied to clipboard

margin error on the canvas view inside the node

Open diGitTil opened this issue 1 year ago • 4 comments

image

looks like a simple fix.

diGitTil avatar Nov 12 '24 23:11 diGitTil

Yeap. Same here. It is impossible to use it.

icemagno avatar Jan 07 '25 02:01 icemagno

You can try to fix it by adding lines to the file (\ComfyUI\custom_nodes\ComfyUI_3dPoseEditor\web\openposeeditor.js) const bcr = app.canvas.canvas.getBoundingClientRect() and edit properties

left: `${transform.a + bcr.x + transform.e + margin}px`,
top: `${transform.d + bcr.y + transform.f}px`,

Image

Image

  • After editing, you need to restart Comfy

MadeMgdn avatar Jan 18 '25 13:01 MadeMgdn

This causes my ComfyUI to freeze and I needed to close the browser. Not even can see the editor, just the node. A note: these lines are not on line 100 and 101 here. Mine are lines 99 and 100.

EDIT: My fault ... forget to add the "bcr" assignment.

But still not working. I recomend those that will test this to do it on a blank workflow. I loose my not saved work.

icemagno avatar Jan 18 '25 17:01 icemagno

You can try to fix it by adding lines to the file (\ComfyUI\custom_nodes\ComfyUI_3dPoseEditor\web\openposeeditor.js) const bcr = app.canvas.canvas.getBoundingClientRect() and edit properties

left: `${transform.a + bcr.x + transform.e + margin}px`,
top: `${transform.d + bcr.y + transform.f}px`,

This works for me so far! Thank you very much, that really helps.

Another problem is that the “Body Parameter” menu below the scene settings appears briefly and then disappears again when you click on the skeleton. Can you do something about this?

antigo333 avatar Feb 09 '25 17:02 antigo333