Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get machine id (IP) from render slave with CS4

  • Get machine id (IP) from render slave with CS4

    Posted by Dino Muhic on October 21, 2009 at 9:23 am

    Hi

    with CS3 I was able to retrieve the ID of my render slaves by using JS in After Effects.
    The JS reads from a textfile on the server where the ID is placed and puts it into a text layer.
    I used it for identifying slaves which did not render how I wanted it.

    Now with CS4 it doesn’t work anymore. I think they removed this ability due to security reasons.

    Has anyone an idea how to make it work under CS4?

    Thank you very much

    Dino Muhic replied 16 years, 6 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    October 21, 2009 at 3:53 pm

    You should still be able to read text files. Are you getting an error message? If so, what is the exact message? Can you post the code?

    Dan

  • Dino Muhic

    October 21, 2009 at 9:54 pm

    Hey Dan,

    here’s the code I placed under “Source Text” in the After Effects text layer.

    #include'C:\\WINDOWS\\Temp\\machinename.txt';
    machinename

    I’m not at the office in the moment, so I can’t look into the text-file, but I think what’s written in there is just machinename = [the name of the machine]
    Possible that there’s also a JS header like <script type="text/javascript"></script>
    but I’m not sure of that.

    When I’m back at the office I’ll post the error message here as soon as possible

    Thank you for your help. I really appreciate it.

    Dino Muhic – Media Producer
    VFX – Motion Graphics – Web-Design – Or just ART
    http://www.dinomuhic.com

  • Dan Ebberts

    October 21, 2009 at 10:43 pm

    OK – I’m with you now. Yes, that did change with CS4. Now you’d have to do it like this:

    myPath = ‘/C/WINDOWS/Temp/machinename.txt’;
    $.evalFile(myPath);
    machinename

  • Dino Muhic

    October 22, 2009 at 8:37 am

    Oh my, it works!

    Thank you very much Dan! Didn’t know they changed the syntax.

    By the way: The error message was an “syntax error” with no further information and what’s written down in the text-file was var machinename='PXM_3D_P07S0085'; but now it works with you help!

    Dino Muhic – Media Producer
    VFX – Motion Graphics – Web-Design – Or just ART
    http://www.dinomuhic.com

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