Hi,
I am trying to make a simple equivalent to the maya “point constraint” as a simple OTL. it just contains two nulls, one being a the world origin, and one to be contrained to the object path provided in a parameter. The translation parameters of the second will be overriden by an object CHOP computing the position between the world origin null and the object whose path is provided.
When I am creating it, it works fine, but the problem is that when I call a new one, it doesn't work apparently because the CHOP doesn't export anymore, even if the export flag is on. it seems that I need to “allow editing of contents”, and toggle twice the export flag of my chop…is this step really necessary, or I am making somthing wrong? As it is not the first time this is happening to me, I may have not understood something…
the solution I found is to have a callback script ( called when a parameter of the OTL changes ) like this:
otunsync `oppwf()`; #allow editing of contents
opset -o 0 `oppwf()`/chop/export; #turn off the exportflag
opset -o 1 `oppwf()`/chop/export; #turn on the exportflag
otsync `oppwf()`; #does not allow editing of contents
I do not really like that, so I guess there may be a better way to go…
And here is a file containing my “point contraint” operator type.
http://perso.chello.fr/users/f/frading/point_contraint.hipnc [perso.chello.fr]
there is just also a few bones, only here to have objects to test my operator onto.
and please…I really need help about this loosing so much time with these kind of details is really painful! <_<