i have made a simple base to calculate the center and size of a SOP grid.
i have a custom COMP parameter to change the path of the primitive i want, but i get a warning about it. why is that?

Also why cant i drag n drop a SOP into that custom parameter.
Or even better how can i drag n drop the SOP onto my base like we do with select OP.

Last nested question, is there a way i can get the size of the grid even if its rotated, translated?

ah wrong parameter type ok, i thought COMP type would allow you to drop anything for some reason.

but for the rectangle i want to find out its dimensions even if its rotated in world space, so regular bounding box will not do. If i imported just a quad into TD, randomly rotated/translated, how would i get its aligned bounding box (that’s the term in houdini at least)

while we don’t have a python function for calculating the aligned bounding box, for rectangles, first use a SOP to CHOP to get the rectangles points. Next append a Analyze CHOP and select Average which will return the rectangle’s center coordinates. Finally use 3 Trim CHOPs to trim out 3 point values from the SOP to CHOP. Use a Math CHOP on each pair of Trim CHOPs to subtract the point coordinates from each other (use the Combine CHOPs parameter’s “Subtract” value) and merge those results with yet another Math CHOP calculating the Length of all channels (using the Combine Channels parmeter’s “Length” value).