Juzwa Posted February 21, 2015 Share Posted February 21, 2015 Hi, I'm having problems with activating/disactivating my constraints in the bullet sim. This will explain the problem: I'm using just an attribute transfer SOP. But you can see that thats not how the constraints should work. I'd like the points I'm painting to stay in the color I painted them with attribute transfer. So I played with creating a new attribute 'make_active' and then to make the attribute transfer run over on some value on the 'make_active' attribute. However I can't make anything working, I'm not that fluent in Houdini. How can this be done? Quote Link to comment Share on other sites More sharing options...
3iart Posted February 21, 2015 Share Posted February 21, 2015 use a solver sop Quote Link to comment Share on other sites More sharing options...
Juzwa Posted February 21, 2015 Author Share Posted February 21, 2015 (edited) I have looked into solver sop, and managed to do a simple scene. I want to transfer the color information (green) onto the 'activated' parameter. I have no idea why setAttribute does not work, even when i just set it to some constant. setAttr.hipnc Edited February 21, 2015 by Juzwa Quote Link to comment Share on other sites More sharing options...
3iart Posted February 21, 2015 Share Posted February 21, 2015 I'm still using 13, so this scene open broken for me. You need to plug in the previous frame and max between that and current. frame/input 1. Quote Link to comment Share on other sites More sharing options...
rayman Posted February 21, 2015 Share Posted February 21, 2015 Right now you don't provide enough information for set attribute to work. Use Bind Export instead. Or you can instead use wrangle node - much faster to set up. i@activated = 0; if(v@Cd.x == 1){ i@activated = 1;} Oh, and you don't have to transfer colors and convert them to another attribute - you can transfer "activated" attribute directly. To keep the attributes to the next frame switch the first input with the "Prev_frame" instead of "Input_1". Quote Link to comment Share on other sites More sharing options...
Juzwa Posted February 21, 2015 Author Share Posted February 21, 2015 (edited) Indeed plugging in to Prev_Frame helped and it works now. So I dont need 'activated' attribute anymore Edited February 21, 2015 by Juzwa 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.