Thursday, December 22, 2011

Setting a keyframe at the current time in Softimage with Javascript

With some help, I learned how I could set a keyframe at the current time in Softimage via Javascript.  Now, thanks to Myara, I can complete my synoptic page....

SaveKey(oObj.posx + "," + oObj.posy + "," + oObj.posz, getValue("PlayControl.Current"))


I couldn't get that syntax working, but I got a slightly different variation working:

function TL_MainBody(in_obj,in_mousebutton,in_keymodifier)
{
oObj = "Bkpk-Controls.NULL_MainBody";
SelectObj(oObj, null, true);
SetValue(oObj + ".kine.local.posx", -1, null);
SetValue(oObj + ".kine.local.posy", 1, null);
SetValue(oObj + ".kine.local.posz", 0, null);
SaveKey(oObj + ".kine.local.posx," + oObj + ".kine.local.posy," + oObj + ".kine.local.posz", getValue("PlayControl.Current"), null, null, null, null, null);
DeselectAll();
}

Sloppy, but it works!

Friday, September 16, 2011

Painting textures in Photoshop CS5

I experienced a problem with several models that I've tried to texture in Photoshop CS5.  The problem was that I could paint on the UV tile, but I could not paint on the model itself.  In addition, in order for my texture to appear, I needed to change 3D/Render Settings to Constant.  When I tried painting directly on the model, it brought up an error stating that the current Render mode didn't allow for it.

Well, it turns out that it was a problem with exporting the model from Softimage.  When exporting an .obj file, if you uncheck Export Material, you can then paint away directly on the model in Photoshop and you can also set Render Setting to Unlit Texture.