Notifications
Clear all
[Closed] Vertex paint AO baker – always fails on first run
Page 2 / 2
Prev
Aug 30, 2009 2:50 pm
you are right.
now it has to work everywhere:
fn pressAssignVColor =
(
format "modify mode: %
" (getCommandPanelTaskMode() == #modify)
format "vertex paint: %
" (iskindof (modpanel.getCurrentObject()) VertexPaint)
if getCommandPanelTaskMode() == #modify and iskindof (modpanel.getCurrentObject()) VertexPaint do
(
name = "Assign"
if (win = windows.getChildHWND #max "Command Panel") != undefined or (win = windows.getChildHWND 0 "Command Panel") != undefined do
(
if (bt = windows.getChildHWND win[1] name) != undefined do UIAccessor.PressButton bt[1]
)
format "rollout: %
button: %
" win bt
)
ok
)
Aug 30, 2009 2:50 pm
Awesome, thanks alot man, really :D. Now my whole script works fine :). That was the only thing holding me up.
Page 2 / 2
Prev