- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, i'm having some trouble figuring out how to do a few things with the xgen api. i've used the samples to get a custom XgRenderer set up. it works great for a single frame. but i can't seem to figure out how to get the motion samples properly. Initially, it only gives a single sample. i've found that i can use _description->addSample() to add samples, and that will cause it to emit additional samples. but i can't seem to figure out how to go about getting the added sample (which, addSample is looking for an XgDescription), to have a time offset. i'd like to modify the frame by half a frame. the only place i can seem to find a frame modification is in the _description->palette()->setFrame() function. which i've tried to modify before addSample, but it just ends up giving me the same thing. there doesn't appear to be a copy function available, as the copy constructor is protected. so i'm at a loss for how to properly get this to work the way i want.
my second question, i see the ProceduralCallbacks in the samples, and they look like they've got motion samples in hand already. but i can't for the life of me figure out how those things are initiated through maya's xgen interface. and there doesn't appear to be any python code in the xgen plugin folder that has any samples of calling up any of the procedural callbacks
i appreciate your time, any help would be greatly appreciated. thanks!
Solved! Go to Solution.