Jump to content

CHOP export in OTL problem!


Recommended Posts

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/poi...contraint.hipnc

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! <_<

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...