[Sidefx-houdini-list] Using something different than AutoDopNetwork
pablogipi at gmail.com
Thu Jun 12 09:39:06 EDT 2008
2008/6/6 Edward Lam <edward at sidefx.com>:
> Ooops. See hou.setCurrentDopNet() ... I think it'll do what you want.
Oh man sorry! I missed this in the docs
The docs about python are a little confusing and sometimes is hard to find
what you are looking for.
It works, thanks
> Edward Lam wrote:
> > If you're not risk-averse, you can try monkey patching .
> > import doptoolutils.py
> > doptoolutils.getCurrentDopNetwork = myGetCurrentDopNetwork
> > where myGetCurrentDopNetwork returns the path to your own dopnet.
> > Looking at doptoolutils.getCurrentDopNetwork() though I don' see it only
> > returning /obj/AutoDopNetwork. It seems like it returns the "current
> > simulation" as set according to the simulation menu on the status bar to
> > Cheers,
> > -Edward
> > 1. http://en.wikipedia.org/wiki/Monkey_patch
> > Pablo Giménez Pizarro wrote:
> >> Hi everybody
> >> I am wrting some tools in python that have to deal with dynamics.
> >> The thing is that I want to use a different dopnet rather than
> >> AutoDopNetwork.
> >> I want to create my own one and then if I use the doptoolutils methods
> >> force them to use this one instead of the default.
> >> I have been diggin into the docs and thepython scripts shipped with
> >> houdini and it seems that the dop utils get the current dopnet using
> >> the getCurrentDopNetwork() method in doptoolutils.py.
> >> This method always return /obj/AutoDopNetowork as the current dopnet,
> >> is doesn't matter if you are into a subnet for example it always
> >> return the same path.
> >> So if I am for example working into a subnet with some objects and I
> >> want to create all the dynamics into this subnet using the
> >> doptoolutils method, is it possible?
> >> Thanks
> >> ---------
> >> Un saludo
> >> Best Regards
> >> Pablo Giménez
> >> pablogipi at gmail.com
> >> _______________________________________________
> >> 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
More information about the Sidefx-houdini-list