Tips and tricks: Importing objects from a XML file

Hi everyone,

When creating  and opening a scene, we find issues to import the objects if they are not in the “objects” folder. A box dialog will open and ask us where are the objects.  It is tedious if we have a lot of objects to import. So, in order to import them in just one time, we can use the XML files and the $(XMLPATH) command in this way.

Where “C:/Users/Administrator/Desktop/esfera.sd” will be replaced with

Putting the $(XMLPATH) and checking the “Apply to all files…” will import the all external sd files where the XML file is placed and subfolders. It means if you have saved the xml file in “c:\temp\scene.xml” if you import the xml from this path, putting $(XMLPATH) command will check all objects in “C:\temp” and subfolders.

luisM.

Advertisement

~ by luismma on January 16, 2012.

5 Responses to “Tips and tricks: Importing objects from a XML file”

  1. Gracias Luis, siempre sacándonos de apuros.
    Un saludo

  2. Can this also work with $(IDOC) for wetmaps? I have multiple emitters colliding with 1 object and I would like to generate individual wetmaps. I tried changing the output path to images/$(IDOC) but it did not work. Is there another way to do it?

    • No, it doesn’t work in this way. Maybe you could do a script to change the path to export the wetmaps but it would be a bit complicated.

      luisM.

  3. I†m counting on the two layers not being visible and colliding with the character at the same time to keep movement smooth.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 57 other followers