Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions JavaScript Addtext() – How do I add a \n (“carriage return”) it the source text?

  • JavaScript Addtext() – How do I add a \n (“carriage return”) it the source text?

    Posted by Michael Powers on August 23, 2005 at 2:23 pm

    Addtext() – How do I add a \n (“carriage return”) it the source text?

    eg:

    activeItem.layers.addText(“Select Camera Go to: \n Layers>Transform>Auto-Orient Turn off”);

    “\t” seems to work for tabbing.

    Also, is there a way to access the auto-orient property via javascript?

    Thnx

    Mathew Kaustinen replied 19 years, 7 months ago 4 Members · 7 Replies
  • 7 Replies
  • Filip Vandueren

    August 23, 2005 at 2:30 pm

    Maybe \r will work instead of \n, not sure though.

    Judging by the documentation, Auto-orient seems to be a feature they forgot to implementy in the Object-Model.
    You might want to try adding an expression that mimics the Auto-orient behaviour.

  • Dan Ebberts

    August 23, 2005 at 2:33 pm

    I think “\r” is what you want.

    As far as I know, auto orient is not accessable to scripts.

    Dan

  • Michael Powers

    August 23, 2005 at 2:40 pm

    Thnx for the quick responses!

    I wrote a scene exporter from 3dsMax to After Effects. Right now it just writes a jsx script and then imports the entire scene via the run command: Camera, Lights, Planes, helper objects and mimics several primitives with various layers and effects(cylinder and sphere).

    I have two questions:

    1. Do you think there is any interest for a plug-in like this.

    2. Where do I find some SDK documentation on the .aec file format (I believe the Cinema4D exporter uses this format)?

    Thnx

  • Michael Powers

    August 24, 2005 at 2:55 pm

    I guess noone thinks a plug-in like this would be useful???

  • Filip Vandueren

    August 24, 2005 at 3:02 pm

    You might want to check in the Max forum, many guys over here work on macs and many use Cinema4D.
    I’m one of them 😎 , but I think that your project would be very useful for Max-users.

    Also, the Max / After Effects readers in this forum, porbably haven’t read this post, since it is not at all obvious from the thread-title that it’s a discussion about importing 3dsMax scene files…

  • Michael Powers

    August 24, 2005 at 3:05 pm

    excellent point! I started working on this last year, but put it aside due to work load. Then at NAB I saw Cinema4D’s excellent impimentation of it. AE’s RPF import also leaves alot of valuable channels out as well as Camera FOV (wow that is a problem :)).

  • Mathew Kaustinen

    August 25, 2005 at 11:04 am

    Mpowers,

    Can’t seem to be able to pull up your user details. Please contact me at matt@boomerlabs.com when you have an opportunity.

    Thanks,

    Mathew Kaustinen
    Boomer Labs

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy