PDA

View Full Version : Load Envelope


MatanH
04-01-2009, 11:30 AM
does anyone has am idea how to load an envelope file through mxs
automatically, without the need of pressing the "OK" button?

MatanH
04-01-2009, 12:35 PM
found it!
UIAccessor.PressDefaultButton()

PEN
04-01-2009, 12:59 PM
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.

MatanH
04-01-2009, 01:10 PM
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 ;)

RobGalanakis
04-02-2009, 12:38 AM
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
04-02-2009, 01:53 AM
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.

eek
04-02-2009, 04:16 AM
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.

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

CGTalk Moderation
04-02-2009, 04:16 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.