Search found 128 matches

by kobyg
May 5th, 2009, 7:15 am
Forum: Expression Discussion
Topic: if then else problem
Replies: 8
Views: 17077

Re: if then else problem

Try this (I hope I understood correctly what you are trying to do): do { P1=[random(thisComp.width),random(thisComp.height)]; T1=thisComp.layer("Reference").sampleImage(P1); } while (T1[3]==0); P1 p.s.: I don't have access to AE right now, so I can't debug this... I hope I didn't miss some...
by kobyg
May 5th, 2009, 6:01 am
Forum: Expression Discussion
Topic: if then else problem
Replies: 8
Views: 17077

Re: if then else problem

Foudou, Whenever you are using a condition (such as in IF or WHILE functions) you must use == in order to check equality between two things. If you use = the script will do an assignment and willl then take the result of the assignment as the value for the condition... This is why when you do: if (x...
by kobyg
April 29th, 2009, 2:58 pm
Forum: Script requests
Topic: Stereoscopic Plugins or Scripts around?
Replies: 9
Views: 16201

Re: Stereoscopic Plugins or Scripts around?

There are actualy better approaches to stereoscopy in AE, in case you are building your 3d scenes in AE, other than duplicating everything twice. A better approach would be to make ONE comp that will include your 3d scene, and then insert it into 2 comps as a 3d layer ("L comp" & "...
by kobyg
April 28th, 2009, 10:18 am
Forum: Script requests
Topic: Script to postion an anchor point in middle of layer
Replies: 2
Views: 9241

Re: Script to postion an anchor point in middle of layer

Check out this script (script from Nabscripts.com and modified for Video Copilot). I don't know where you can find the script by itself... here it is boundeled with a project file: http://www.videocopilotstore.net/208b91bb69c7d5c1f791128e7cdc7b82/videotutorials/projects/86.zip unzip the file to extr...
by kobyg
April 20th, 2009, 2:55 pm
Forum: Expression Discussion
Topic: z-depth offset without scaling the object
Replies: 4
Views: 11916

Re: z-depth offset without scaling the object

I'm glad I could help.
p.s.: The name is Koby, not Kolby :wink:
by kobyg
April 20th, 2009, 9:18 am
Forum: Expression Discussion
Topic: z-depth offset without scaling the object
Replies: 4
Views: 11916

Re: z-depth offset without scaling the object

Check out Paul's "PSD to 3D" script on this website:
viewtopic.php?f=9&t=498
I hope this is what you were looking for.

Koby.
by kobyg
April 10th, 2009, 7:43 am
Forum: Scripts Discussion
Topic: Dockable panel script laucnher
Replies: 4
Views: 8816

Re: Dockable panel script laucnher

Benny, Try positioning all 3 buttons "at the same position", it should solve your problem. Something like this (in the createUI function): var BTmidi = addScriptButton(myPanel,[0,0,130,20], "Meteo du midi", "/Medias/benji/scripts/", "meteo_semaine_midi.jsx"); ...
by kobyg
April 10th, 2009, 12:36 am
Forum: Scripts Discussion
Topic: Slider and setValue
Replies: 4
Views: 10285

Re: Slider and setValue

Hi, Try this: NewL = Math.floor(Math.abs(myVertices[0][0]-myVertices[3][0])); NewH = Math.floor(Math.abs(myVertices[0][1]-myVertices[1][1])); Largeur = myText.Effects.addProperty("Paramètre glissière"); Largeur.name = "Largeur"; myText.effect("Largeur")("Curseur&...
by kobyg
April 2nd, 2009, 2:26 am
Forum: Expression Discussion
Topic: Swapping source images with an expression
Replies: 2
Views: 9320

Re: Swapping source images with an expression

You can also get what you want in a different approach. Precomp all your images into one composition, make each image 1 frame long in the timeline, and sequence the layers (using Animation -> Keyframe Assistant -> Sequence Layers), with no overlap. This way you will get a comp where each frame shows...
by kobyg
March 30th, 2009, 8:28 am
Forum: Scripts Discussion
Topic: Reading file Problem
Replies: 1
Views: 5637

Re: Reading file Problem

Perhaps you've reached the maximum allowed string length in your F_TXT variable... That could cause a memory corruption, and can explain the non consistent behaviour. In order to check that, see if an XML file with shorter lines, reaches more lines before it crashes. If so, consider splitting the st...
by kobyg
March 20th, 2009, 5:43 pm
Forum: Expression Discussion
Topic: numbering a sequence of shot
Replies: 10
Views: 46617

Re: numbering a sequence of shot

Dan's idea is better than the solution I though of.
You won't need any markers this way.
Real clever expression !
Great idea Dan !
by kobyg
March 19th, 2009, 7:07 am
Forum: Expression Discussion
Topic: numbering a sequence of shot
Replies: 10
Views: 46617

Re: numbering a sequence of shot

iyadooz, In case you won't have a script to do what you want, you could do it without a script, using Markers: You could put Comp Markers at places in time where each scene begins, and then use a simple expression to change the string of a text layer to display the index number of that marker, which...
by kobyg
March 19th, 2009, 6:05 am
Forum: Paul Tuersley's Scripts
Topic: pt_Panorama
Replies: 19
Views: 109039

Re: Make Panorama

I've just downloaded the file with no problem...
(the two versions provided on that page were downloaded easily)
Maybe you have a problem with your browser...?
by kobyg
March 12th, 2009, 10:26 am
Forum: Expressions Library
Topic: Domino Expression
Replies: 9
Views: 42777

Re: Domino Expression

Hi James, Thank you very much, I'm glad you've liked the animation :) You'd better apply my modified expression to all layers except the last one (it prevents them from making an error, in case you enter wrong parameters in the sliders). If you want to leave the last domino standing, just dissable t...
by kobyg
March 12th, 2009, 7:38 am
Forum: Expression Discussion
Topic: Accelerate position value
Replies: 2
Views: 14293

Re: Accelerate position value

Try this expression: (Link your acceleration slider to the v variable in the expression) Td = framesToTime(1, 1.0 / thisComp.frameDuration); x = 0; v = effect("acceleration")("Slider"); n = timeToFrames(time + thisComp.displayStartTime, 1.0 / thisComp.frameDuration); for (k=0; k<...