csp Posted December 12, 2012 Share Posted December 12, 2012 Hi all, I have a simple question with maybe not possible solution. I would like to keep the point attributes from the geometry which is used as a backbone in the sweepSOP. By default, sweep will deleted all the attributes of the backbone but I noticed that succesfully transfers the color to the new geometry. Is there any way to trasfer custom attributes? If there was only one attributes vector attribute or three floats I could assign them to the color and then following the sweep I can break them again to individual attributes but I have two vector attributes. Also attributetrasferSOP can do it successfully when the geometry is like the example in the attached file. Finally I can't use copySOP or polywireSOP because in my original scene I have multiple backbones merged and only sweepSOP gives me the right result by treating each backbone separately. attributes_sweep.hip Quote Link to comment Share on other sites More sharing options...
anim Posted December 12, 2012 Share Posted December 12, 2012 here is one way (in the file) use Cd to temporary store original P of the backbone points then create rest of sweep geometry transfer it to Cd so it bacames aligned with original points attribtransfer all the attributes you want even Cd from before creating temporary one (this will be precise since all points lie exactly on top of original backbone point and you sample just first closest point anyway) transfer it back to rest so it becomes sweep again the other way would be to store pt as first component of Cd and then import attributes directly from that pt in the vops, but attribtransfer can nicely copy many attributes of different type at once so I prefer that method and of course you can use Copy SOP, but you would need to make sure your backbone has correct orientation attributes so Sweep is easier to use attributes_sweep_fix.hip 1 Quote Link to comment Share on other sites More sharing options...
csp Posted December 12, 2012 Author Share Posted December 12, 2012 here is one way (in the file) cheers mate for both the file and the explanation. Quote Link to comment Share on other sites More sharing options...
acey195 Posted December 12, 2012 Share Posted December 12, 2012 Alternatively, it is probably possible to create a double loop with 2 copy SOPs. (or 1 copy SOP and a foreach SOP) You could create one copy sweep per backbone. use join to make sure each backbone is a single primitive if you need to. Then simply loop through all primitives. Quote Link to comment Share on other sites More sharing options...
csp Posted December 13, 2012 Author Share Posted December 13, 2012 Alternatively, it is probably possible to create a double loop with 2 copy SOPs. (or 1 copy SOP and a foreach SOP) You could create one copy sweep per backbone. use join to make sure each backbone is a single primitive if you need to. Then simply loop through all primitives. that was my backup plan 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.