This is the way I do it ...
Save the tray prop.
Save each of the apples separately as temp files.
Then in a file editor (like notepad ++), edit the tray pp2 file.
Copy the three sections of code from each of the apple files to the appropriate tray section.
Once you've got all your code transferred to the tray pp2, delete the temp apple pp2s.
So, you'd have something like this.
{
version
{
number 9
}
prop Tray
{
storageOffset 0 0.3487 0
objFileGeom 0 0 :Runtime:Geometries:Your Folder:Tray.obj
}
prop Apple1
{
storageOffset 0 0.3487 0
objFileGeom 0 0 :Runtime:Geometries:Your Folder:Apple.obj
}
prop Apple2
{
storageOffset 0 0.3487 0
objFileGeom 0 0 :Runtime:Geometries:Your Folder:Apple.obj
}
prop Apple3
{
storageOffset 0 0.3487 0
objFileGeom 0 0 :Runtime:Geometries:Your Folder:Apple.obj
}
And so on, until you have all your apples added here.
Then would be your prop property lines, starting with your tray prop
prop Tray
{
name Tray
on
bend 1
animatableOrigin 0
dynamicsLock 1
hidden 0
addToMenu 1
castsShadow 1
includeInDepthCue 1
useZBuffer 1
parent UNIVERSE
creaseAngle 80
subdivLevels 0
subdivRenderLevels 0
backfaceBehavior 2
Bunch more Tray lines (channels, offsetA, scales, rotate, translate, offsetB, materials, and the "closing" tray property lines
locked 0
backfaceCull 0
visibleInReflections 1
visibleInRender 1
visibleInCamera 1
visibleInIDL 1
displacementBounds 0
shadingRate 0.2
smoothPolys 1
}
Now paste the code from your temp apple1 pp2 file
prop apple1
{
name apple1
on
bend 1
animatableOrigin 0
dynamicsLock 1
hidden 0
addToMenu 1
castsShadow 1
includeInDepthCue 1
useZBuffer 1
smartparent Tray
creaseAngle 80
subdivLevels 0
subdivRenderLevels 0
backfaceBehavior 2
Bunch more Tray lines (channels, offsetA, scales, rotate, translate, offsetB, materials, and the "closing" apple1 property lines
locked 0
backfaceCull 0
visibleInReflections 1
visibleInRender 1
visibleInCamera 1
visibleInIDL 1
displacementBounds 0
shadingRate 0.2
smoothPolys 1
}
Continue pasting the code from each of your temp apples pp2 files until you have all your apple property lines for each of your apple props added here.
prop apple2
{
name apple2
on
bend 1
animatableOrigin 0
dynamicsLock 1
hidden 0
addToMenu 1
castsShadow 1
includeInDepthCue 1
useZBuffer 1
smartparent Tray
creaseAngle 80
subdivLevels 0
subdivRenderLevels 0
backfaceBehavior 2
channels
Bunch more Tray lines (channels, offsetA, scales, rotate, translate, offsetB, materials, and the "closing" apple2 property lines
locked 0
backfaceCull 0
visibleInReflections 1
visibleInRender 1
visibleInCamera 1
visibleInIDL 1
displacementBounds 0
shadingRate 0.2
smoothPolys 1
}
Keep adding the lines for each apple prop from each temp apple pp2.
After your last apple prop, include addActor lines for each of the apple props to the tray doc & addActor lines
doc
{
addActor Tray
addActor Apple1
addActor Apple2
addActor Apple3
and so on until you have an addActor line for all your apple props
}
}