Copy transforms

   8844   9   4
User Avatar
Member
63 posts
Joined: Sept. 2014
Offline
I’m surprised I can’t find anything that does this. But almost every 3D software I’ve used has a copy transforms. What’s the beat way to easily copy any or all of the rotation, location, or scale of one object to another.
User Avatar
Member
447 posts
Joined: April 2018
Online
Copy the parameter and paste it onto the other object.
User Avatar
Member
63 posts
Joined: Sept. 2014
Offline
Well I figured that. It just seems clunky and time consuming for doing many objects.
User Avatar
Member
833 posts
Joined: Jan. 2018
Offline
That's what those icons at the right of the parameters are for:

Attachments:
Screen Shot 2020-04-28 at 9.30.46 AM.png (87.8 KB)

>>Kays
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
User Avatar
Member
63 posts
Joined: Sept. 2014
Offline
I was actually trying to see if there was a way to copy transforms from an object. To something at the sop geometry level. The transform SOP doesn't have those icons.

Attachments:
transform.JPG (76.2 KB)

User Avatar
Member
405 posts
Joined: April 2017
Offline
In VEX, you can use optransform() to do this. optransform() returns a matrix, which you could then multiply your SOP by in a Point Wrangle to transform the points:

matrix m = optransform("/obj/my/xform");
@P = m * @P;

The Object Merge SOP can also use any arbitrary transform when merging in geometry.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
833 posts
Joined: Jan. 2018
Offline
oaboraz
I was actually trying to see if there was a way to copy transforms from an object. To something at the sop geometry level. The transform SOP doesn't have those icons.

In that case, why not just merge all your different geometry and then apply a cumulative transform?

Maybe I'm misunderstanding what you're trying to accomplish, could you elaborate on specifically what you're trying to do?
>>Kays
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
User Avatar
Member
447 posts
Joined: April 2018
Online
oaboraz
I was actually trying to see if there was a way to copy transforms from an object. To something at the sop geometry level. The transform SOP doesn't have those icons.
If you're at Geometry/SOP level, you're not working with objects, you're working with basically points. As such, the concept of copying transforms from one object to the other doesn't apply.

As per Houdini's docs, when you're doing transforms within SOPs, you're actually deforming an object, and not transforming it.
https://www.sidefx.com/docs/houdini/basics/objects.html#transforming-objects-vs-surfaces [www.sidefx.com]

I think pretty much every new Houdini user gets confused between Object and Geometry level, given how much work takes place with SOPs.

To answer your query though, if you're applying a transformation using a Transform node, you can stash that change by enabling the Output Attribute on the node (called ‘xform’ by default), and then transferring that attribute to the geometry (not the object!) you want to apply it to. I've attached an example.

Edited by eikonoklastes - April 29, 2020 06:05:12

Attachments:
Transform by xform Attribute.hiplc (86.6 KB)
Annotation 2020-04-29 134911.png (71.1 KB)

User Avatar
Member
63 posts
Joined: Sept. 2014
Offline
Thank you eikonoklastes, this is what I was looking for. Not exactly intuitive, but then again most things in houdini aren't.
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
did you try 'freeze' from the tab menu?
  • Quick Links