Search found 162 matches

by Peteroid
Tue Sep 21, 2010 9:36 pm
Forum: Scripting
Topic: New Camera Tool: Point Camera [*new version 6 *]
Replies: 32
Views: 13680

New Camera Tool: Point Camera [*new version 6 *]

*** UPDATE : There is now a version 6 with more functionality *** Camera Tool: Point Camera What it does : This tool allows the user to select a Layer and a Frame Range... when executed the camera will always look directly at the layer for the entirety of the frame range. The way it works: - Select...
by Peteroid
Tue Sep 21, 2010 4:54 pm
Forum: Scripting
Topic: The Tool I'm creating is...
Replies: 28
Views: 5216

Great Tool Idea. I am using Blender so I know in Blender, We can use lots of differenet cameras and using Python you can also control from from No. 1 to Fram No. 121 Camera1 will be used and From Frame No. 122 to 211 Camera2 will be used and so on.... It will be so nice that in ASP you will be able...
by Peteroid
Tue Sep 21, 2010 3:01 pm
Forum: Scripting
Topic: OnMouseDown, moho.layer, and other topics
Replies: 4
Views: 1477

You know, not to be a dick or anything but if you didn't know about the print function you should probably read some lua tutorials and familiarize yourself with the language before attempting to understand moho scripting. In those tutorials the first thing you do is the whole "hello world"...
by Peteroid
Tue Sep 21, 2010 2:34 pm
Forum: Scripting
Topic: The Tool I'm creating is...
Replies: 28
Views: 5216

DK wrote:Wonderfull Peteroid :)

Would it be hard to make a 2D checkbox for those who only wish to use it on the 2D plane or will that be native to the feature?

Cheers
D.K
This should work in 2D just as well as in 3D (after all, 2D is just the special case of 3D where Z= 0 always)... :)
by Peteroid
Tue Sep 21, 2010 2:29 pm
Forum: How Do I...?
Topic: Bad image in the camera movements
Replies: 13
Views: 1555

The solution might be much simpler. When I opened the file in Quicktime, it says it were 25 fps and 10 sec long. When I imported the file into AS to check the odd movement, I noticed it was only 240 frames long. So my guess is that you have a project setting (24 fps) different from the export setti...
by Peteroid
Tue Sep 21, 2010 7:53 am
Forum: Scripting
Topic: The Tool I'm creating is...
Replies: 28
Views: 5216

What happens/will happen to the camera after the end of the desired frame range? Will it stay in the same spot if there are more frames to go in the project? Would it be hard to target multiple objects, ie, after the end of one desired frame range is reached have the camera point at another layer? ...
by Peteroid
Tue Sep 21, 2010 3:02 am
Forum: Scripting
Topic: The Tool I'm creating is...
Replies: 28
Views: 5216

The Tool I'm creating is...

..... is still not done, but I'm making headroom. Here is an image of the interface. It is a Camera Tool called Point Camera (you can read the description in the interface): http://www.peteroid.com/images/point_camera_interface.png I have the calculation routines completely done and seem to calculat...
by Peteroid
Tue Sep 21, 2010 1:19 am
Forum: How Do I...?
Topic: Bad image in the camera movements
Replies: 13
Views: 1555

Sorry, and thank you very much for trying to explain, but I still do not understand what you want me to say. The movement that I do not with objects. Only move the camera. It may be that the background image is too heavy, I do not know Thanks a lot for trying to help :) I have a better idea. Give m...
by Peteroid
Tue Sep 21, 2010 12:24 am
Forum: Scripting
Topic: OnMouseDown, moho.layer, and other topics
Replies: 4
Views: 1477

OnMouseDown, moho.layer, and other topics

I beleive it is a common practice to use OnMouseDown as the routine to the functionality into. At least many scripts seem to have this function right under the title "the guts of the script". Since I can't see anything going on, I use a technique a called 'sound debugging'. I place a 'beep...
by Peteroid
Mon Sep 20, 2010 11:10 pm
Forum: Scripting
Topic: MSG_BASE?
Replies: 9
Views: 2313

And here are two examples before bedtime that may or may not help: This is for bones but you can see the basic structure To get the scale value of say frame 16 and put it in the variable newScale: newScale=bone.fAnimScale:GetValue(newFrame) This gets the value from the frame 16, doesn't matter if f...
by Peteroid
Mon Sep 20, 2010 11:05 pm
Forum: Scripting
Topic: MSG_BASE?
Replies: 9
Views: 2313

It is obvious that it is impossible to do a Script without this knowledge, how hard would it be for SM or LM to write up this class and put it in the forum? I refer to the class that, for example, has the member ScriptName... Well, I've managed to create a few scripts and I have no idea what you're...
by Peteroid
Mon Sep 20, 2010 10:27 pm
Forum: Scripting
Topic: MSG_BASE?
Replies: 9
Views: 2313

Oh, and I'm still not sure what the whole BASE_STR = 2380 is, but it's not the same thing as message base. All Lost Marble tools have a BASE_STR number but it's not something you need in your script. Thanks! Yeah, I'm slowly getting it. It is basically copy code from other scripts, modify it, see h...
by Peteroid
Mon Sep 20, 2010 9:08 pm
Forum: Scripting
Topic: Where is the definition of 'ScriptName'?
Replies: 3
Views: 1436

Genete, Thanks! That gives me a lot of the info I've been looking for. And it might be enough for now to let me get what I'm trying to do accomplished. Some of what you told me I never knew before, and it is KEY information. I list this as a great example (while discussing tool scripts): You define ...
by Peteroid
Mon Sep 20, 2010 8:17 pm
Forum: Scripting
Topic: MSG_BASE?
Replies: 9
Views: 2313

MSG_BASE?

The document says this about MSG_BASE: The following constants are used when setting up messages for user interface elements. Any messages you use in your custom controls should be greater than or equal to the MSG_BASE constant so as not to interfere with other GUI elements in Moho. For example you ...
by Peteroid
Mon Sep 20, 2010 7:45 pm
Forum: How Do I...?
Topic: Bad image in the camera movements
Replies: 13
Views: 1555

BUF!!! I did not understand much .... my English is poor, sorry ... I can understand thanks to google translate, but sometimes they do well. I can explain a little slower .... (Like I was stupid) I did not understand some things ... jajaja I use AS6. What I say can be done in AS6? OK. Let me try ex...