Search found 203 matches

by nab
September 6th, 2006, 9:57 pm
Forum: Script requests
Topic: Renaming Script
Replies: 6
Views: 13660

Hello Tom,

you can try this one and feel free to ask some improvements if needed :

http://www.nabscripts.com/Forum/Scripts ... enamer.jsx
by nab
August 8th, 2006, 11:15 pm
Forum: Scripts Discussion
Topic: Tip for rounding numbers
Replies: 2
Views: 7839

Tip for rounding numbers

Hi all, we often have to round numbers in our scripts (or expressions). I usually use the Math.round() method to accomplish this, for example: x = 57.351245; alert(Math.round(x*100)/100); // 2-digit precision -> 57.35 Yesterday I've found an alternative way to round numbers with a defined precision:...
by nab
August 8th, 2006, 10:50 pm
Forum: Scripts Discussion
Topic: Accessing a selected mask vertex
Replies: 1
Views: 6626

Hello Jorge,
nope, no way to retrieve selected vertex or vertices :(
by nab
July 31st, 2006, 7:12 pm
Forum: Scripts Discussion
Topic: Getting a source text out of "Basic Text" effect
Replies: 2
Views: 7947

that would be handy but you can't access this option with scripting
by nab
June 10th, 2006, 9:47 am
Forum: Script requests
Topic: AE to C4D
Replies: 13
Views: 40108

Of course, you can share info with other users.
Your first script is quite funny but bravo ! :D
When more details about the txt format will be given, I could write the script for you.
by nab
June 9th, 2006, 10:40 pm
Forum: Script requests
Topic: AE to C4D
Replies: 13
Views: 40108

salut Salvador, I think I can help you ... if you post a typical txt file (recognized by c4d) containing all properties you want to export. What should be written to specify POI, orientation (instead of "Point") ... As an example, select a 3D layer and apply the following script. Position ...
by nab
June 9th, 2006, 3:26 am
Forum: Script requests
Topic: mask color changer
Replies: 2
Views: 8540

Hi Varangian, okay I take this one...I love masks :D the palette is probably not the most beautiful I've made :lol: but I hope this will be a bit useful... Colors are Yellow, Red, Green, Blue, Magenta, Orange and White, I didn't know exactly what colors fit to your needs for all types of maskMode......
by nab
June 1st, 2006, 7:57 pm
Forum: Scripts Discussion
Topic: Deleting keyframes
Replies: 2
Views: 8313

Hi knubile,
i'm pretty sure that the equivalent of clicking on the stopwatch to deactivate all existing keyframes is not possible via a script.
To my knowledge the "best way" is the way you did it, i.e. a simple loop calling removeKey().
by nab
May 31st, 2006, 2:56 pm
Forum: Expression Discussion
Topic: loopOut("continue") and orientation
Replies: 2
Views: 10933

Hello Mylenium, thanks for the reply, I think I understood what you meant. I've found some good infos on the net about orientation/rotations, the way to represent/store them, usually using quaternions as you mention and others really interesting stuff -and complex as well- related to 3D game program...
by nab
May 27th, 2006, 11:51 pm
Forum: Expression Discussion
Topic: loopOut("continue") and orientation
Replies: 2
Views: 10933

loopOut("continue") and orientation

Hello,
does someone know why we cannot apply the loopOut("continue") expression on the orientation property of a three-D layer ?
thanks !
by nab
May 20th, 2006, 10:56 am
Forum: Expression Discussion
Topic: date?
Replies: 8
Views: 18048

I also got the same error... that's why I tried to specify an argument (an integer in my case). I've made my own experiments too ... just for fun I put this sourceText expression that mainly consists in a while loop and call the Date() function before/after the loop to get the 'running time'. i = 0;...
by nab
May 19th, 2006, 5:23 pm
Forum: Expression Discussion
Topic: date?
Replies: 8
Views: 18048

hello, could you (Dan) briefly explain how the Date( number ) method works in expressions ? if I write this expression for source text Date(0); I get the current date and time and it updates as the comp time augments. if I replace '0' by any other number (10000000 for example), it doesn't seem to ch...
by nab
May 1st, 2006, 12:56 pm
Forum: Script requests
Topic: reading the lenght of a mask !
Replies: 3
Views: 10413

(sorry i wasn't at home...)
nope, i didn't download your project since i don't have v7.0
but the math behind your idea is similar to that used in the script : when you talk about "speed" the script deals with "derivatives"
by nab
April 21st, 2006, 10:07 pm
Forum: Script requests
Topic: reading the lenght of a mask !
Replies: 3
Views: 10413

Hi sebastien, it's not generally easy to determine the length of a bezier mask (formed by multiple bezier curves), but you can achieve it by decomposing all curves in infinitesimal segments. Then you simply have to compute the sum of the length of each segment to obtain the approximated total length...
by nab
April 10th, 2006, 11:36 pm
Forum: Script requests
Topic: script idea (timesaver)
Replies: 4
Views: 11239

For the entire comp duration, replace the line you mentioned by:

Code: Select all

myBrushDuration.setValue([0,myComp.duration]);
should be ok