Itoo Software Forum

Author Topic: maxscript: getFulltransform always returns same matrix  (Read 1235 times)

clw

  • Newbie
  • *
  • Posts: 2
maxscript: getFulltransform always returns same matrix
« on: July 18, 2014, 05:00:45 PM »
Hello,

like stated in the subject i'm trying to get the transformations of each tree in a forest object, but the getFulltransform function always returns "(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])" for every tree in my forest no matter what the local transform is. I assume that's not really the expected behaviour.

best regards,
chris

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1376
Re: maxscript: getFulltransform always returns same matrix
« Reply #1 on: July 18, 2014, 05:32:16 PM »
Hi Chris,

Could you please double check what values you'll get with code attached below for selected Forest object? Thanks in advance.

global count = $.trees.count() - 1
for i = 0 to count do
   (
      local t = ($.trees.getFullTransform i)
      print t
   )


Hope you'll find it useful.

Kind regards,

clw

  • Newbie
  • *
  • Posts: 2
Re: maxscript: getFulltransform always returns same matrix
« Reply #2 on: July 21, 2014, 12:31:51 PM »
Hi Michal,

thanks for the quick response. I should have posted my code in the original post as it is functionally the same as the snippet you posted hence the result is the same. All trees return "(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])". I tried in current (4.2.4) Forest Pro and Lite as well as with Pro 3.8.1 with the same result. My actual goal is to export postition, rotation and scale for all trees in the scene so i'm open to any workarounds if there are some.

Thanks,
Chris

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1376
Re: maxscript: getFulltransform always returns same matrix
« Reply #3 on: July 21, 2014, 01:51:23 PM »
Hi,

Could you please use the Forest Pro board for this topic as for reasons explained below? Thanks in advance.

"We have modified the support policy for our products in order to improve our customer support service.

In the case of Lite versions, only generic support will be provided, including questions about general  features, technical specifications, and licensing.

Personalized support, including questions or guided help to solve specific problems will be available only for registered Pro version users.

This policy includes both the forum and questions via e-mail or the support form. For issues regarding Pro products, please use the Forest Pro and RailClone Pro forum boards, or the support form available in the User Panel.

Thanks for your cooperation."
« Last Edit: July 21, 2014, 01:53:05 PM by Michal Karmazín »

GH4155

  • Newbie
  • *
  • Posts: 6