[Sidefx-houdini-list] Hi

Crest Christopher crestchristopher at gmail.com
Sun Feb 7 22:00:45 EST 2016


I have a big question, I'm going to get the question in order and soon 
post it to the list because I'm extremely baffled on this problem for a 
week.

In the meantime, the network is procedural but obviously if a box is 
deleted it would break using this expression ?

Alex Czetwertynski wrote:
> I might be missing something from your question, but they are not related.
>
> The expression you are mentioning is just fetching the bounding box from
> another op that happens to be above the level you are in.
> In Houdini you can just navigate across networks using these types of
> expression, as you would in the command line.  In fact, you can think of
> Houdini's networks and nodes as a series of nested directories.
>
> You would only use opinputpath if you specifically wanted to refer to a
> node that was wired into one of the parent node's inputs.  This is handy to
> keep your network procedural, i.e you don't have to worry about what gets
> plugged in...In the case of of a direct reference as in your example, if
> "box1" was deleted, the expression would break.
>
> HTH
> Alex
>
>
>
>
> On Sun, Feb 7, 2016 at 9:49 PM, Crest Christopher<
> crestchristopher at gmail.com>  wrote:
>
>>     <index>  is the 0-based number of the input. For example, to get the
>>     path of the node connected to the first input, use opinputpath(".",
>>     0), and for the second input, use opinputpath(".", 1).
>>
>>         I'm not understanding how the command relates to this;
>>
>>         $YMAX + bbox("../box1/", D_YMAX)
>>
>>
>>         Alex Czetwertynski wrote:
>>
>>>          Christopher
>>>
>>>          If your opinputpath is fetching "../box1", this is just the name
>>> of the op
>>>          you are fetching.
>>>          If you are referring to the second parameter of opinputpath,
>>> that's just
>>>          the input index, because you could be fetching an op that is
>>> plugged into
>>>          the nth input.
>>>
>>>          Hope that helps
>>>          Alex
>>>
>>>
>>>          On Sun, Feb 7, 2016 at 9:17 PM, steven ong<steve_nong at pointy.tv>
>>> wrote:
>>>
>>>          Hi,
>>>>          I highly recommend opening the textport then use help and
>>>> exhelp. So for
>>>>          opinputpath, do exhelp opinputpath and you'll get the
>>>> explanation plus
>>>>          syntax and example expressions.
>>>>
>>>>          Good luck and welcome to Houdini-land.
>>>>
>>>>          Cheers!
>>>>          steven
>>>>
>>>>
>>>>
>>>>          On 02/07/16 16:20, Crest Christopher wrote:
>>>>
>>>>          Am I correct to assume that a path in ("../box1") first is the
>>>>> path,
>>>>>          followed by a scalar value of; 1 ? I'm trying to understand
>>>>> opinputpath,
>>>>>          I understand you get the path of the object you want to link,
>>>>> then what
>>>>>          follows is what would be a scalar value ?
>>>>>
>>>>>
>>>>>          Bloomer, Justin Douglas wrote:
>>>>>
>>>>>          To debug, I guess you are referring to see what value it is
>>>>>> using. If
>>>>>>          that
>>>>>>          is the case the simply click on the channel that you made the
>>>>>> expression
>>>>>>          in. For example, if you did a centroid expression on the
>>>>>> translate Y,
>>>>>>          then
>>>>>>          simply click the word translate on the left.
>>>>>>
>>>>>>          On Wed, Feb 3, 2016 at 6:51 PM, Crest Christopher<
>>>>>>          crestchristopher at gmail.com>    wrote:
>>>>>>
>>>>>>          Elizabeth, I'm already watching an introduction to Houdini, so
>>>>>> far so
>>>>>>
>>>>>>>          good, is there a particular video in Kim Goossens videos that
>>>>>>> I should
>>>>>>>          watch that relates to centroids ?
>>>>>>>
>>>>>>>          My second question relates to how you can debug that D_YMIN
>>>>>>> evaluates to
>>>>>>>          either 0,1 or 2 or any of the other D_efine expressions ?
>>>>>>>
>>>>>>>          When I mentioned it makes sense, I meant, it makes sense that
>>>>>>> it does
>>>>>>>          evaluate to 0, or 1 or 2 as mentioned by Michael, but how do
>>>>>>> you
>>>>>>>          debug this
>>>>>>>          evaluation !
>>>>>>>
>>>>>>>
>>>>>>>          Elizabeth Stephens wrote:
>>>>>>>
>>>>>>>          I'm not sure what you're asking in your second question, but
>>>>>>> centroid
>>>>>>>
>>>>>>>>          centers one node to another on a specific axis. So if you
>>>>>>>> had a
>>>>>>>>          line, on
>>>>>>>>          the Y axis and you wanted a sphere to stay in the center no
>>>>>>>> matter how
>>>>>>>>          long
>>>>>>>>          your line in the sphere's y origin you would type:
>>>>>>>>
>>>>>>>>          centroid("../line",D_Y)
>>>>>>>>
>>>>>>>>          Have you watched any of the beginner tutorials?
>>>>>>>>          I found taking the time to go through them very beneficial
>>>>>>>> in learning
>>>>>>>>          little things like these.
>>>>>>>>
>>>>>>>>          May I suggest:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> https://www.youtube.com/watch?v=VTNrT-sAVu0&list=PLShEm1_z6_cyBOAKQSH2ck-enGSnovMjD
>>>>>>>>
>>>>>>>>
>>>>>>>>          You can learn a lot from Kim Goossens videos!
>>>>>>>>
>>>>>>>>          On Wed, Feb 3, 2016 at 6:05 PM, Crest Christopher<
>>>>>>>>          crestchristopher at gmail.com>     wrote:
>>>>>>>>
>>>>>>>>          I believe you, that D_ stands for define as it makes most
>>>>>>>> sense ;-)
>>>>>>>>
>>>>>>>>          I'm going to sometimes have stupid questions in my posts so
>>>>>>>>> that is a
>>>>>>>>>          warning for everyone on the list, if it's too stupid let me
>>>>>>>>> know if
>>>>>>>>>          it's
>>>>>>>>>          average stupid well when the question arises you'll know.
>>>>>>>>>
>>>>>>>>>          How do I use a Centroid ? How do you debug that D_YMIN etc
>>>>>>>>> evaluate to
>>>>>>>>>          0,1,2; although it makes sense ?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>          Michael Dunkley wrote:
>>>>>>>>>
>>>>>>>>>          *I could be very wrong about this* but I believe that the
>>>>>>>>> D_ is
>>>>>>>>>
>>>>>>>>>          actually shorthand for "define," as they effectively
>>>>>>>>>> operate as
>>>>>>>>>>          Houdini-wide C / C++ style #defines.  All of the D_ words
>>>>>>>>>> ultimately
>>>>>>>>>>          evaluate as integers by the time the function uses it.
>>>>>>>>>> That is to
>>>>>>>>>>          say, these two are identical:
>>>>>>>>>>
>>>>>>>>>>          centroid("../path",D_X)<--- D_X will evaluate as zero
>>>>>>>>>>          centroid("../path",0)
>>>>>>>>>>
>>>>>>>>>>          In the case of the bbox function (for instance), its
>>>>>>>>>> easier to use
>>>>>>>>>>          the
>>>>>>>>>>          defines as its often tough to know which integer stands
>>>>>>>>>> for which
>>>>>>>>>>          functionality.  Centroid is a little easier to use w/ just
>>>>>>>>>> numbers -
>>>>>>>>>>          D_X, D_Y, D_Z are the only options and evaluate to 0,1,2
>>>>>>>>>>          respectively.
>>>>>>>>>>          That said, technically speaking i think you could also use
>>>>>>>>>> D_XMIN,
>>>>>>>>>>          D_YMIN, and D_ZMIN in leiu of these, as they also evaluate
>>>>>>>>>> to 0,1,2.
>>>>>>>>>>          Confusing, I know.
>>>>>>>>>>
>>>>>>>>>>          You can test any of this by entering any of the D_'s into
>>>>>>>>>> a normal
>>>>>>>>>>          number box and clicking it to see what it evaluates to.
>>>>>>>>>>
>>>>>>>>>>          All of this said, I completely agree with Francois'
>>>>>>>>>> sentiment that
>>>>>>>>>>          its
>>>>>>>>>>          probably better to just learn then conventions and let
>>>>>>>>>> their
>>>>>>>>>>          necessity
>>>>>>>>>>          become clearer as time goes on.  Houdini, for the most
>>>>>>>>>> part, is very
>>>>>>>>>>          logically consistent, and a lot of the one-off and
>>>>>>>>>> seemingly
>>>>>>>>>>          inconsistent stuff you have to learn up front (like these
>>>>>>>>>> defines and
>>>>>>>>>>          local variables) are often more the exception than the
>>>>>>>>>> rule for
>>>>>>>>>>          day-to-day Houdini use.
>>>>>>>>>>
>>>>>>>>>>          Mike
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>          On Wed, Feb 3, 2016 at 6:05 PM, François
>>>>>>>>>>          Duchesneau<sidefx at trinix.ca>
>>>>>>>>>>          wrote:
>>>>>>>>>>
>>>>>>>>>>          No, you won't be able to add attachment here. You'll have
>>>>>>>>>> to use the
>>>>>>>>>>
>>>>>>>>>>          forum
>>>>>>>>>>>          for that.
>>>>>>>>>>>
>>>>>>>>>>>          Good thing you thought about it though, every now and
>>>>>>>>>>> then somebody
>>>>>>>>>>>          tries it
>>>>>>>>>>>          and he doesn't understand why the file didn't get through
>>>>>>>>>>> :)
>>>>>>>>>>>
>>>>>>>>>>>          Francois
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>          On 02/03/2016 06:03 PM, Crest Christopher wrote:
>>>>>>>>>>>
>>>>>>>>>>>          I was a little curious, if anyone knows to peak it !
>>>>>>>>>>>
>>>>>>>>>>>          Can I send Houdini files in this list ?
>>>>>>>>>>>>          I think I've said my Hello's to everyone and to the
>>>>>>>>>>>> Houdini Team
>>>>>>>>>>>>          unless
>>>>>>>>>>>>          they are busy with Houdini.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>          François Duchesneau wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>          To be honest you can just take for granted what's the
>>>>>>>>>>>> convention in
>>>>>>>>>>>>
>>>>>>>>>>>>          the
>>>>>>>>>>>>>          doc and apply it in your expressions. I don't think
>>>>>>>>>>>>> it'll bring
>>>>>>>>>>>>>          you
>>>>>>>>>>>>>          much
>>>>>>>>>>>>>          Houdini knowledge knowing the history of why they named
>>>>>>>>>>>>> it this
>>>>>>>>>>>>>          way
>>>>>>>>>>>>>          rather
>>>>>>>>>>>>>          than something else, unless of course you're just
>>>>>>>>>>>>> curious.
>>>>>>>>>>>>>
>>>>>>>>>>>>>          In other words there's no logic that when you use D_
>>>>>>>>>>>>> followed by
>>>>>>>>>>>>>          something else you can query other type of information,
>>>>>>>>>>>>> it's just
>>>>>>>>>>>>>          expressions they've made to help you find the bounding
>>>>>>>>>>>>> box max,
>>>>>>>>>>>>>          min
>>>>>>>>>>>>>          or
>>>>>>>>>>>>>          centroid etc.
>>>>>>>>>>>>>
>>>>>>>>>>>>>          Francois
>>>>>>>>>>>>>
>>>>>>>>>>>>>          On 02/03/2016 04:43 PM, Crest Christopher wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>          Dimensions, in other words, Dimensions of the bounding
>>>>>>>>>>>>> box to the
>>>>>>>>>>>>>
>>>>>>>>>>>>>          yMin ?
>>>>>>>>>>>>>>          How does Houdini know what is the yMin and yMax etc ?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>          Matt Estela wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>          dimension(s) maybe?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>          On 4 February 2016 at 05:56, Crest
>>>>>>>>>>>>>>>          Christopher<crestchristopher at gmail.com>
>>>>>>>>>>>>>>>          wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>          Hi, Everyone. ;-)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>          My first question for the list as there will be many
>>>>>>>>>>>>>>> is;
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          what do
>>>>>>>>>>>>>>>>          D_
>>>>>>>>>>>>>>>>          stand
>>>>>>>>>>>>>>>>          for when using D_YMIN ?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          Olivier Jeannel wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          Hi there !
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          On Wed, Feb 3, 2016 at 7:47 PM, Gary
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>          Jaeger<gary at corestudio.com>
>>>>>>>>>>>>>>>>>          wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>          yeah, me too :)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>          Gary Jaeger // Core Studio
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>          249 Princeton Avenue
>>>>>>>>>>>>>>>>>>          Half Moon Bay, CA 94019
>>>>>>>>>>>>>>>>>>          650.728.7957 (direct)
>>>>>>>>>>>>>>>>>>          650.728.7060 (main)
>>>>>>>>>>>>>>>>>>          http://corestudio.com<http://corestudio.com/>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>          On Feb 3, 2016, at 10:44 AM, Crest Christopher<
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>          crestchristopher at gmail.com>        wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>          Hello Houdini List :-)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>>>
>>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>>
>>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>>
>>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>>
>>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>>
>>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>>
>>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>>
>>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>>>
>>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>>
>>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>>
>>>>>>>>>>>          _______________________________________________
>>>>>>>>>>>
>>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>>
>>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>>
>>>>>>>>>>          _______________________________________________
>>>>>>>>>>
>>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>>
>>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>>
>>>>>>>>>          _______________________________________________
>>>>>>>>>
>>>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>>
>>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>>
>>>>>>>>          _______________________________________________
>>>>>>>>
>>>>>>>          Sidefx-houdini-list mailing list
>>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>>
>>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>>
>>>>>>>          _______________________________________________
>>>>>>>
>>>>>>          Sidefx-houdini-list mailing list
>>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>>
>>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>>
>>>>>>          _______________________________________________
>>>>>          Sidefx-houdini-list mailing list
>>>>>          Sidefx-houdini-list at sidefx.com
>>>>>
>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>
>>>>>          _______________________________________________
>>>>          Sidefx-houdini-list mailing list
>>>>          Sidefx-houdini-list at sidefx.com
>>>>
>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>
>>>>
>>>
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>
>
>
>




More information about the Sidefx-houdini-list mailing list