Hi Rob,
Yes, you can use the file name of each graphic in your data fields.
Once you do this, there are a couple of ways to access the file names in
your job.
One is to add each graphic as a named Graphic Resource (you can use the
"Add Multiple" button on the Resources dialog). Then you can go into
the "Data Fields" dialog (FusionPro -> Data Definition -> Input Options
-> Edit Fields) and change the field's type to "Graphic", and then you
can use the field name directly in the "Field or Rule" name box in the
variable graphic frame.
Another is to create a simple graphic JavaScript rule using the
CreateResource function, like so:
return CreateResource(Field("MyGraphicFieldName"));
Substitute the name of your data field. The rule can have any name you
like (including the same name as the data field). Then you can select
the rule's name in the "Field or Rule" name box in the variable graphic
frame.
This approach also gives you more flexibility in terms of how you can
find the graphic based on field values. For instance, if the data field
simply contains the name of the graphic without an extension, you can
write the rule to add the extension back on. For example, in the Frodo
Travel tutorial, you could change the Photo rule like so:
return CreateResource(Field("Destination") + ".JPG");
This allows you to easily reference graphics and other resources that
may be keyed off of data fields, without having to create named
resources.
Also, with the CreateResource approach, if the graphic files are not in
the same folder as your job, you may have to add the path to the
graphics in the Search Path on the Advanced tab of the Composition
Settings dialog. The path entered can be either absolute or relative to
your job. (For the Frodo Travel tutorial, you could simply type
"Assets" as the Search Path.) Alternately, you could specify the path
to the graphics in the rule itself, for example:
return CreateResource("assets/" +
Field("Destination") + ".JPG");
Dan
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!
Variable text on a curve and soft drop-shadows for variable text
LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade
New licenses available for $599 each at:
http://fusionpro.printable.com/store/
All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--