tagosaku Posted November 30, 2019 Share Posted November 30, 2019 hi, I am studying inverse matrix VOP with packed objects. When I apply the VOP with one packed object, everything is fine. However, when doing with two packed objects, I get unexpecting deformed result. I guess a key is "set attribute" VOP setting. Especially I am not sure how to use "point or primitive parameter". For instance, I use one packed primitive object and pick prim number 0. The result is correct. Next, I merge one more object and still keep selecting prim0 object to extract matrix. However, I got strange result. I am expecting pig should keep a default shape, and rubber could be deformed so much because of using prim 0's matrix. My guess is that I properly need to understand how to use setAttribute > pointOrPrimitive parameter. Default value is -1, so I set to 0 in order to focus on outputting correctly for only pig. However, it does not work well. Thus, I appreciate if anyone tells me what wrong with my attached file, thank you so much. invertMatrixTest01.hip Quote Link to comment Share on other sites More sharing options...
jimeng20 Posted December 5, 2019 Share Posted December 5, 2019 (edited) Hi there, First, instead of doing a parameter for prim_number, connect the global primnum into both primitive_intrinsic vop "prim" parameter. Because you want to grab the individual primitive number for both packed geo at the same time. Second, in you setattrib, you need to connect the global primnum into i1, again, you need to define which primitive number to set the intrinsic, so it knows to set intrinsic to the corespondent packed geo. I tested and also added another packed geo and it should work, but unfortunately I can't upload the file since my work place doesn't allow to. Hope this will help. Edited December 5, 2019 by jimeng20 Quote Link to comment Share on other sites More sharing options...
tagosaku Posted December 6, 2019 Author Share Posted December 6, 2019 thanks, I will try out your idea! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.