magneto Posted January 20, 2012 Share Posted January 20, 2012 I thought these were accessible for any SOP: http://www.sidefx.com/docs/houdini11.0/nodes/sop/standardvariables But when I try to use them say to set the Offset of a Mountain SOP, it doesn't recognize the variables and errors out. I tried to use $SIZEX, etc. They work for Transform SOP, etc. Is there a way to know where I can use them? I couldn't find any info in the SOP main page. Quote Link to comment Share on other sites More sharing options...
gaurav Posted January 20, 2012 Share Posted January 20, 2012 (edited) I thought these were accessible for any SOP: http://www.sidefx.com/docs/houdini11.0/nodes/sop/standardvariables But when I try to use them say to set the Offset of a Mountain SOP, it doesn't recognize the variables and errors out. Its a list of variables which are available under sops. It does not necessarily mean that they are supported by all ops. I always check the op help card to see what variables are available, under its "Local Variables" heading. In the time of confusion, I would say Parameter box of a node is ultimate arbiter. As far as accessing any standard variable in any op go. One could create a custom variable using "Attrib Create" (Check its local variable listing, and it should be no surprise. As almost all the standard variables are supported here). Call it with point,prim ,detail .etc. in your node. I agree that it could be confusing in the beginning and needs trial and error. Cheers, Edited January 20, 2012 by vectorblur 1 Quote Link to comment Share on other sites More sharing options...
rafaelfs Posted January 20, 2012 Share Posted January 20, 2012 Its a list of variables which are available under sops. It does not necessarily mean that they are supported by all ops. I always check the op help card to see what variables are available, under its "Local Variables" heading. In the time of confusion, I would say Parameter box of a node is ultimate arbiter. As far as accessing any standard variable in any op go. One could create a custom variable using "Attrib Create" (Check its local variable listing, and it should be no surprise. As almost all the standard variables are supported here). Call it with point,prim ,detail .etc. in your node. I agree that it could be confusing in the beginning and needs trial and error. Cheers, Yeah, unfortunately the documentation doesn't always say what variables are available, so it's trial and error. When it errors out you can be sure there is an expression that solves your problem. In that case would be the bbox("..soppath_here", D_XSIZE). Cheers 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 20, 2012 Author Share Posted January 20, 2012 Thanks guys, I didn't know that. Seeing at least most of the available variables per OP is good. @Rafael, I didn't realize I could do the same with that expression. Having many overlaps like this in addition to trial and error makes it unintuitive I think. Quote Link to comment Share on other sites More sharing options...
Kappy Posted January 20, 2012 Share Posted January 20, 2012 It's kinda old (written for H9), but I always used to look at this PDF made by Ron Bernard to know what variables are available where: http://www.profwiz.com/wp-content/uploads/2008/05/rb_h9_attributes.pdf 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 21, 2012 Author Share Posted January 21, 2012 Thanks Kappy, that's a pretty good document. 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.