cannot find pre and postSyncCallback attributes

   549   4   0
User Avatar
Member
5 posts
Joined: Oct. 2013
Offline
The Houdini node in Maya doesn't seem to have these attributes. How exactly does this work? i'm looking to attach Maya events to changes made by the HDA. will this get me what i need?
User Avatar
Staff
146 posts
Joined: Oct. 2017
Offline
You should be able to find them in the attribute editor in the AssetCallbacks block inside the AssetOptions block.
User Avatar
Member
5 posts
Joined: Oct. 2013
Offline
I see button options to sync and reload, are these calling the callback methods? preSyncCallback and postSyncCallback do not exist when using listAttributes() on the HDA node so i'm inclined to believe the docs are just outdated.
User Avatar
Staff
146 posts
Joined: Oct. 2017
Offline
If you're looking at the Sync and Reload buttons in the Asset Options tab of the Attribute Editor, you should see the AssetCallbacks tab right below. There should be string fields to enter the names of the mel procs to use as callbacks.

Which version of Houdini do you have? Those attributes were added for 17, it would be a shame if something happened to them.

What happens if you do:
attributeExists “preSyncCallback” “yourAssetNode”
User Avatar
Member
5 posts
Joined: Oct. 2013
Offline
ah. that would explain it. turns out I was the one that was outdated! I'm running 16.5 still, and was unaware that these were added recently.
  • Quick Links