Notifications
Clear all

[Closed] Load Envelope

does anyone has am idea how to load an envelope file through mxs
automatically, without the need of pressing the “OK” button?

6 Replies

found it!
UIAccessor.PressDefaultButton()

 PEN

Are you talking about for the Skin modifier. The access to it sucks, having to have it selected in the stack and all is a pain. To be able to load skin weights and what I have had to write my own XML file format that stores all the data and then apply back to a skin modifier. If you are talking about something else then I will just move right along.

This is exactly what I am talking about Paul,
but for our needs this is enough.
We wanted to write a small tool that can update skin data of all assets in an animation scene automatically and we wanted to avoid pressing ‘ENTER’ for every env file.

I don’t remember seeing anything like what you are taking about in the scripts section in your site so I presume you are not sharing it. Am I wrong in that assumption? Because it sounds interesting

I posted a script made with Zeboxx’s help for this. You could toggle the ‘Remove Incoming Prefix’ and ‘Remove Existing Prefix’ checkboxes, and it would Match By Name and then OK the dialog.

http://forums.cgsociety.org/showthread.php?f=98&t=716017&highlight=skinops.loadenvelope

 PEN

I have not shared it, sorry. 95% of what I do I don’t share, I need to have some edge on the rest of the industry;)

I didn’t bother with the built in systems and I have a tool that does exactly what you are looking to do. It loads the data from a custom XML file that stores all the vertex and envelop data. You can then automate the process of updating Skin weights with it using call back scripts. I can also use the same tool for setting up new characters using an existing rig as I have functions that will add skin, read the file and add all the bones then set all the envelopes and weights if I want. At the moment there is no UI, just functions that are called as I need them, this is another reason tools like this don’t end up on my site as I would have to spend lots on time on documentation for any one to use it all.

1 Reply
 eek
(@eek)
Joined: 10 months ago

Posts: 0

ditto, to everything you said. I don’t use XML though atm, but am building essentially a framework of structured functions.