"Easy way" to check if object have not reseted transform

Objects that have been scaled or mirrored at the object level, attached also will result in a transform matrix that doesn't have all of its axes at right angles to each other. I looking the way to find out which scene objects have bed transform
and reset their transform.

I don't know is this right way

fn doRXF obj = 
(
	if obj.transform as string != obj.objectTransform as string do 
	(
		obj.pivot = obj.center
		ResetXForm obj
		convertToPoly obj -- this is optional
	)
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eramorse's picture

Thank you for sharing this

Thank you for sharing this informative blog. This is really an interesting post and I tried your code and it's working. I've been looking for this code for my project reference and thank you so much for providing it. We really appreciate your blog.

testosterone booster

how to boost testosterone

riomukti21's picture

Useful information

I found problem of resetter and this post give me a very useful for my problem

barigazy's picture

Another example

(
	delete objects
	b = converttopoly (Box())
	polyop.createShape b #{1, 8, 10, 12}
	spl = objects[objects.count]
	centerpivot spl
	select spl
	format "tm = %\nobjTM = %\n" (spl.transform) (spl.objecttransform)
)

bga

Anubis's picture

...

if by bed transform you mean the translation part then looks like you have solution ;)

my recent MAXScripts RSS (archive here)

barigazy's picture

yep, translation but also

yep, translation but also scale and rotation. My solution works fine for now:)

bga

Anubis's picture

...

Compare #transform to #objectTransform should always return true.

my recent MAXScripts RSS (archive here)

barigazy's picture

Try to affectPivot Only and

Try to affectPivot Only and manualy rotate axis gizmo.
Then check $.transform and $.objecttransform

bga

Anubis's picture

aha :)

now i get what you mean ;-)

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.