Itoo Software Forum

Author Topic: How to save area values in ForestPackPro Preset (.fpe)  (Read 47 times)

UG7911

  • Newbie
  • *
  • Posts: 4
How to save area values in ForestPackPro Preset (.fpe)
« on: August 04, 2021, 03:36:39 PM »
Hi,
We work a lot with fpp preset ".pfe", unfortunately we discover that saving ".fpe" ignore Areas tab.
we really want to export/import areas values in our .fpe preset like :
- distribution map
- scale and threshold
- boundary checking choice
- falloff

How can we save thoses areas tab values in the .fpe file ? May be its possible with a script ?
Thanks
« Last Edit: August 04, 2021, 05:24:51 PM by UG7911 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1881
Re: How to save area values in ForestPackPro Presert (.fpe)
« Reply #1 on: August 04, 2021, 04:54:29 PM »
I'm afraid at present this isn't possible because these settings are often dependent on the splines/objects/paint areas you have in the Areas list and this may be different for each object to which you apply the preset.
Paul Roberts
iToo Software

UG7911

  • Newbie
  • *
  • Posts: 4
Re: How to save area values in ForestPackPro Presert (.fpe)
« Reply #2 on: August 04, 2021, 05:13:48 PM »
Thanks i understand
But in our case, we always have the same spline (with same name) and same object / same materials. Is there a way to script it or to manually edit xml area values codes (with our spline name) ?
We want to save different area variation in the same max scene.
It will be very helpfull for us ! thanks
« Last Edit: August 04, 2021, 05:20:08 PM by UG7911 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1881
Re: How to save area values in ForestPackPro Preset (.fpe)
« Reply #3 on: Today at 03:05:48 PM »
Hi,

Many of those settings are visible to maxscript so in theory you could create a tool to switch between presets. The relevant variables with some sample data are as follows:

Code: [Select]
--Name
$.arnamelist[i] = "Rectangle0012"
--Include or Exclude
$.arincexclist[i] = 0
--Thickness
$.arwidthlist[i] = 13.3
--Force Open Splines
$.arforceopenlist[i] = on
-- Select Models
$.arselspeclist[i] = on
--Surface Materials ID
$.arsurfidlist[i] = "1"
--Z Offset
$.arzoffset[i] = 4.78
-- Distribution Map
$.armaplist[i] = VRayBitmap ()
--Scale Override
$.arscalelist[i] = 157
--Threshold Override
$.arthresholdlist[i] = 175
--Falloff Density Override
$.arflafdenslist[i] = 100
--Falloff Scale override
$.arflafscalist[i] = 85
--Invert Curve
$.arflinvlist[i] = on
--Boundary Checking
$.arboundchecklist[i] = 1
-- Falloff Density on off
$.spdensact = on
--Density Include
$.spdensinc = 0.29
--Density Exlude
$.spdensexc = 1.36
--Falloff Scale on off
$.spscalact = on
-- Scale Include
$.spscalinc = 2.03
-- Scale Exclude
$.spscalexc = 2.67
-- Affect Height Only
$.spscalz = off

I hope that helps,
Paul

« Last Edit: Today at 03:27:33 PM by Paul Roberts »
Paul Roberts
iToo Software

UG7911

  • Newbie
  • *
  • Posts: 4
Re: How to save area values in ForestPackPro Preset (.fpe)
« Reply #4 on: Today at 07:25:27 PM »
That sounds good
Thank you very much Paul for your help !