Jump to content

Mod Tool: Difference between revisions

m
or an animated Rotoscope ...
mNo edit summary
m (or an animated Rotoscope ...)
Line 1,965: Line 1,965:
* Based on that pixels the grids becomes deformed to match the image's proportions.
* Based on that pixels the grids becomes deformed to match the image's proportions.
* Then this "Animated_Ref" grid should be ready for usage.
* Then this "Animated_Ref" grid should be ready for usage.
Similar can be done with the Rotoscope.
Something like that:
function siOnTimeChangeEvent_OnEvent( in_ctxt )
' fixed code
'SetValue "Views.ViewD.RightCamera.camdisp.rotoenable", True
'SetValue "Views.ViewD.RightCamera.rotoscope.imagename", "Clips.Animated_Ref_N_jpg"
' flexible code
' find active viewport, set Rotoscope active and choose image
'SetValue GetViewCamera(GetViewIndex) & ".camdisp.rotoenable", True
'SetValue GetViewCamera(GetViewIndex) & ".rotoscope.imagename", "Clips.Animated_Ref_N_jpg"
current_frame = cstr(in_ctxt.GetAttribute("Frame"))
if GetValue(GetViewCamera(GetViewIndex) & ".camdisp.rotoenable") = true then
  ' Animated_Ref_60.jpg ' . becomes _
  SetValue GetViewCamera(GetViewIndex) & ".rotoscope.imagename", "Clips.Animated_Ref_" & current_frame & "_jpg"     
end if
siOnTimeChangeEvent_OnEvent = true
end function




8,323

edits