How to copy a multiparm from one node to another?

   296   1   1
User Avatar
Member
631 posts
Joined: 8月 2019
Offline
For example, let's say I have two Rig Pose SOPs. Rig Pose's transformation data is in a multiparm:



I'd like to copy and paste this multiparm from one Rig Pose to the other. How could I do that? If I just RMB menu -> Copy Parameter -> Paste Values, it only copies the number of parms, not their values:



Is there a way to copy and paste all the values at once?

(I can't use Create Reference Copy, because one of the Rig Pose is inside another HDA as an editable node.)

Attachments:
Enter_a_filename.png (50.2 KB)
pasted.png (38.1 KB)

User Avatar
Member
9143 posts
Joined: 7月 2007
Offline
you can save Recipe on one rigpose containing just your multiparm and apply to another

if you want to avoid saving recipe you can do:
src_parm = hou.parm('/path/to/source/rigpose/transformations')
tgt_parm = hou.parm('/path/to/target/rigpose/transformations')

tgt_parm.setFromData( src_parm.asData() )
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links