jakc3 Posted February 20, 2015 Share Posted February 20, 2015 Hello, I'm following an old tutorial from CMIVFX where you create a galaxy. Since it's old i have to adapt many things, and i'm having lots of issues. Currently i'm stuck at one it seems i can't figure out by myself. In the center of the galaxy i'd like to create a bulge in the Y direction but i can't seem to change it form X to Y. So currently it's deforming in X direction which i don't want. I tried solving it by changing the circle geometry from ZX axis to YZ and the bulge created in the X direction, then i transformed the complete thing with the transform SOP to get it into horizontal position. But down the road that created more problems than it solved. Now i'm asking you, how could i change the position from X to Y in VOPs, where i have my bulge setup. There are two setups, on the left is the wanted result, and on the right is the ''proper'' way to do it but with lots of issues. File is in the attachment. Galaxy.hipnc Quote Link to comment Share on other sites More sharing options...
eetu Posted February 20, 2015 Share Posted February 20, 2015 In your floattovec1 node, connect the incoming noodle to the second connector (the y component of the resulting vector) instead of the first connector. Quote Link to comment Share on other sites More sharing options...
jakc3 Posted February 20, 2015 Author Share Posted February 20, 2015 In your floattovec1 node, connect the incoming noodle to the second connector (the y component of the resulting vector) instead of the first connector. Thank you kind sir, it worked. Quote Link to comment Share on other sites More sharing options...
jakc3 Posted February 21, 2015 Author Share Posted February 21, 2015 I have another question. I'm trying to split particles into two groups, large and small. In the large group i defined which particles i want with this: rand($PT) > .98, and then in the ''small'' group i just combined that large doesn't equal to small. So, i should have two groups. Then i have two Attribute VOPs where i set up parameters for width. Then i assigned a group to each attribute VOP, but i found that only the first VOP is working and the second isn't. I bypassed it by adding an attribute with Add Attribute SOP, but it isn't as flexible as it is with vops so i'd like to find out why it isn't working. Any ideas why? File is in the attachment, i color marked the nodes i'm having issues with. Many thanks, Jake Galaxy_v2.hipnc Quote Link to comment Share on other sites More sharing options...
iamyog Posted February 22, 2015 Share Posted February 22, 2015 (edited) it's because you are using an addAttribute to set the width. If you look at the help card it says : http://www.sidefx.com/docs/houdini14.0/nodes/vop/addattrib Note This does not change the attribute values. To change the value of the currently processed element, see the Bind Export VOP. To change other elements or other attribute classes, see Set Attribute VOP. if you replace it by a set Attribute, a bind export or a parameter, it will work. Edited February 22, 2015 by iamyog 1 Quote Link to comment Share on other sites More sharing options...
LukeLetellier Posted February 23, 2015 Share Posted February 23, 2015 To create an attribute & set it's value within VOPS, you need to have two nodes present inside your VOP network - an Add Attribute node to initialize the attribute, and a Bind Export node to set the value. See the attached scene. AddAttrbiute_in_Vops.hiplc 1 Quote Link to comment Share on other sites More sharing options...
jakc3 Posted February 23, 2015 Author Share Posted February 23, 2015 Thank you very much 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.