hello guys, wondering how can I scale an object with reference to its midpoint not the midpoint of image. As scale in TOPs is applied to origin of image and not the object.

note: there is only one object in the image.png and I have found the midpoint of the object through trace SOP then a Box SOP, scale it to 0, then SOP to DAT.

Pivot p - ⊞ - The Pivot point edit fields allow you to define the point about which the TOP scales and rotates. Altering the pivot point of a TOP produces different results depending on the transformation performed on the TOP image.

For example, during a scaling operation, if the pivot point of a TOP image is located at -1,-1 and you wanted to scale the image by 0.5 (reduce its size by 50%), then the TOP would scale toward the pivot point and appear to slide down and to the left.

bonustip: You can reach the help page for any operator by clicking the question mark in its parameter window

wow great, thankyou. following up on this, is there a way of finding out the correct pivot point’s required to scale down to center of the object’s midpoint without having to do it manually. As I have multiple images and all of them would have their own unique pivot point for doing scaling . Automating would be more accurate and a life saver.

Are you asking how you can calculate the correct pivot point? The pivot point should simply be equal to the object’s midpoint, if coordinates for both are normalized between 0-1.
So if you have a 1920x1080 image, and the object midpoint is at x=700 and y=500
the pivot point should be at:
px: 700/1920 = 0.364
py: 500/1080 = 0.463
So if you already know the object midpoint for each image, then yes you could apply them automatically as pivot point for each image.

No sir, my midpoints are in range from -1 to 1 but the pivot point are different even when normalized I think. Maybe you can give it a look, much appreciated for your response

Your midpoint positions are in the range -0.5 to 0.5 (0,0 is the center of the image)
Pivot points are always in the range of 0 to 1 (0.5,0.5 is the center of the image)