www.ssontech.com Forum Index www.ssontech.com
SynthEyes Camera Tracker Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sizzle bug?

 
Post new topic   Reply to topic    www.ssontech.com Forum Index -> Sizzle Scripting (NOT TECH SUPPORT)
View previous topic :: View next topic  
Author Message
eoffermann



Joined: 26 May 2005
Posts: 79
Location: Asylum Effects - Santa Monica

PostPosted: Tue Jan 30, 2007 2:32 am    Post subject: Sizzle bug? Reply with quote

I'm having a weird problem with a sizzle script: (version shown here has other items removed for simplicity.

//SIZZLET Tracker Scale
ob = Scene.activeObj
trk = ob.trk
for (tk in trk)
wasItDone = tk.isDone
tk.isDone = 0
shot = ob.shot
f0 = shot.start
f1 = shot.stop
for (frame = f0; frame <= f1; frame++)
newv = (tk.v * 1.125)
tk.v = newv
end
tk.isDone = wasItDone
end
closeout()

I'm working on a show where the plates that were originally provided were provided at the wrong pixel aspect. We're trying to avoid re-tracking the entire thing, and the tk.v*1.125 portion would put the trackers back where they belong: but the result is that tk.v is left alone and tk.u is set to the value of tk.v

I've tested this on the MacOS X version of SynthEyes under 2007.1003 and 2006.5.1011 with the same result. I'm tempted to run back over to work and try it on a windows machine...

Any suggestions?
Back to top
View user's profile Send private message Visit poster's website
eoffermann



Joined: 26 May 2005
Posts: 79
Location: Asylum Effects - Santa Monica

PostPosted: Tue Jan 30, 2007 2:41 am    Post subject: Reply with quote

Actually, to be completely clear I should say that
Code:
tk.u=newv

and
Code:
tk.v=newv

have exactly the same result. (The u value of the 2d tracker gets changed, leaving the v value alone)
Back to top
View user's profile Send private message Visit poster's website
ssontech
Site Admin


Joined: 16 Mar 2005
Posts: 609
Location: Valley Forge, Pennsylvania

PostPosted: Tue Jan 30, 2007 10:03 am    Post subject: Reply with quote

Oops. There was the obvious typo in the sizzle implementation to set that attribute. For now, do this:

tk.uv = Point(tk.u, newv)

Sorry about that & thanks for pointing it out.
Back to top
View user's profile Send private message Visit poster's website
eoffermann



Joined: 26 May 2005
Posts: 79
Location: Asylum Effects - Santa Monica

PostPosted: Tue Jan 30, 2007 11:41 am    Post subject: Reply with quote

Works like a charm!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.ssontech.com Forum Index -> Sizzle Scripting (NOT TECH SUPPORT) All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group