Results 1 to 6 of 6

Thread: Preset Object and Image loader in Layout

  1. #1
    Registered User joseba's Avatar
    Join Date
    Dec 2003
    Location
    Bilbao
    Posts
    92

    Preset Object and Image loader in Layout

    A total noob her. I am trying to do an object and image preset loader within layout in windows7.
    I do not know anything about coding, but with the help of LS commander i have a little script that load a object with LoadObject and load a image with LoadClip command. It works, but i want not to load but to copy first those files to the current content directory and then load them.
    Any ideas? please help.

  2. #2
    I'm not sure if lscript gives you commands on the OS to do that.

    Python would be the better option for this.
    My opinions and comments do not represent those of my employer.
    www.ernestpchan.com
    www.zazzle.com/gopuggo

  3. #3
    Registered User joseba's Avatar
    Join Date
    Dec 2003
    Location
    Bilbao
    Posts
    92
    Buff...
    and what about load the object and image from the absolute path and then save them in the content directory relative path?

  4. #4
    Registered User joseba's Avatar
    Join Date
    Dec 2003
    Location
    Bilbao
    Posts
    92
    Ok. It works. Not the best approach i think, but...
    1 -load the object with LoadObject and absolute path
    2 -save the object with SaveObject and content relative path
    3 -Remove the loaded object with ClearSelected
    4 -Now Load the content relative path object with LoadObject and content relative path

    This for the object side. For the image one, i can load it with loadimage, but i donīt know how to save it to the content relative path

  5. #5
    If you use Save->package scene, it does all this for you.

  6. #6
    Electron wrangler jwiede's Avatar
    Join Date
    Aug 2007
    Location
    San Jose, CA
    Posts
    6,254
    It's __much__ more efficient to do this in Python.

    It may not seem like much with test objects, but when a user has large objects that take many seconds (to minutes) to load/save, the needless save-then-reload operations will add a LOT of extra time overall.
    John W.
    LW2015.3UB/2018.0.7 on MacPro(12C/24T/10.13.6),32GB RAM, NV 980ti

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •