[Sidefx-houdini-list] non gui access to new operator type (Ben Laidlaw)

Antoine Durr antoinedurr at gmail.com
Fri Oct 14 14:28:20 EDT 2011


Been loosely following this thread.  If you have a vex builder, that's just like a subnet with a bunch of nodes in it, not a predefined operator type.  Couldn't you opscript -r the operator and everything below it, and then reread it back in?  Or am I misunderstanding the goal?

-- Antoine


On Oct 14, 2011, at 9:59 AM, Benjamin Laidlaw wrote:

> 
> Hey Dan,
> So this isn't the coded way to fined it, but this how the gui way defines it. I believe you should be able to back step from here. I've seen it through hotl before.
> To define what context a new otl will be in through the gui. In the Edit Operator Type Properties, EOTP, menu go tabs Tools > Context > Network Pane, and check the network pane that you want to be able to see it. This tab corresponds to the tab/tool menu for the network pane. You can also fill , for alternatives through the Viewer Pane you can go to the adjacent tab, Viewer Pane. Below these options you can is TAB Submenu path, so if you want to organize stuff from the submenu path a.k.a. get it out of digital assets on the tab menu you can do that here. You can also pseudo code where the otl will be available in the tab menu  by modifying the variable $HDA_TABLE/$HDA_NAME... This section of the EOTP menu has a lot of options to vary up how the stuff will appear.
> 8\ lol, Verbage.
> -Ben
>> 
>> Message: 2
>> Date: Thu, 13 Oct 2011 10:36:10 -0700
>> From: Peter Bowmar <pbowmar at gmail.com>
>> Subject: Re: [Sidefx-houdini-list] non gui acees to new operator type
>> To: Dan Schneider <eyevex at yahoo.com>
>> Cc: "sidefx-houdini-list at sidefx.com" <sidefx-houdini-list at sidefx.com>
>> Message-ID:
>> 	<CAEX_qczh4-pEMG2OFHRL6dgKwPTm7B9LQZ8U-DcUEOmgTM_ffQ at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>> 
>> Hmm, no sorry, I don't think I've used the New Operator Type menu, I
>> just plop things into /vex or wherever I am and start working :)
>> 
>> On 12 October 2011 22:48, Dan Schneider <eyevex at yahoo.com> wrote:
>>> Im familiar with context in terms of handcoding vex where Id udually declare explicitly
>>> 
>>> -- but when when I make a new vop ie foobar via new operator type -> vex builder it seems somewhat context nuetral (?)
>>> 
>>> ie it is (as a shell with no real guts, but lets say I had a basic/general math utility in mind)
>>> 
>>> it is instantly available in /vex/sop/ or vex/cop/ vex/pop/ etc... but obviously when I specify the context type as ie "surface" its only available in that context. Im trying to achiev behavior more similar to the nuetral context when create via the menu.
>>> 
>>> I cant quite figure out whats goin on here.... any idea?
>>> 
>>> 
>>> 
>>> 
>>> ----- Original Message -----
>>> From: Peter Bowmar <pbowmar at gmail.com>
>>> To: sidefx-houdini-list at sidefx.com; Dan Schneider <eyevex at yahoo.com>
>>> Cc:
>>> Sent: Thursday, October 13, 2011 3:12 PM
>>> Subject: Re: [Sidefx-houdini-list] non gui acees to new operator type
>>> 
>>> If you make it
>>> 
>>> sop foobar()
>>> {
>>> }
>>> 
>>> it'll be a SOP, is that what you mean?
>>> 
>>> On 12 October 2011 20:35, Dan Schneider <eyevex at yahoo.com> wrote:
>>>> ok... so it seems
>>>> vcc -m vops.otl source.vfl
>>>> does the bulk of creating a vex builder node
>>>> 
>>>> a simple declaration seems to be enough ie
>>>> 
>>>> surface foobar()
>>>> {
>>>> }
>>>> 
>>>> So that last thing to figure out is really what context... it seems whe done via the file menu a contexxt isnt expected but I do need one in this exaple..
>>>> Is there a way to generate this contest free similar to the menu?
>>>> 
>>>> ideas?
>>>> 
>>>> 
>>>> 
>>>> ----- Original Message -----
>>>> From: Dan Schneider <eyevex at yahoo.com>
>>>> To: "sidefx-houdini-list at sidefx.com" <sidefx-houdini-list at sidefx.com>
>>>> Cc:
>>>> Sent: Thursday, October 13, 2011 2:13 PM
>>>> Subject: non gui acees to new operator type
>>>> 
>>>> Im looking for away to run command similar to those in the File ->? New Operator Type menu. In particular, Vex builder but others would be useful in the future as well.
>>>> It seems when I look in the xml for the menu it runs the id h.newotl which is from the hotkey file "h"
>>>> 
>>>> Any idea where the actual script that get ran lives and if its accessable?
>>>> Are these just commandline flags to vcc ? -- It would seem likely, but I have been unable to get a combination the produces and empty vop in an OTL like New Operator Type -> VexBuilder...
>>>> 
>>>> any leads on how to do this or find the code that gets ran to look at would be great. Thanks ahead for your thoughts.
>>>> 
>>>> (|;-D>
>>>> _______________________________________________
>>>> Sidefx-houdini-list mailing list
>>>> Sidefx-houdini-list at sidefx.com
>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Cheers,
>>> 
>>> Peter B
>>> 
>>> --No, I am not on Facebook.
>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> Cheers,
>> 
>> Peter B
>> 
>> --No, I am not on Facebook.
>> 
>> 
>> ------------------------------
>> 
> 
> 		 	   		  
> _______________________________________________
> 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