View Full Version : Don't affect children


Snape
11 November 2006, 02:02 PM
Hi,

Does anyone know how to turn 'dont affect chidren' on and off with Maxscript?

Thanks in advance

Spencer

charles-magne
11 November 2006, 02:27 PM
I once had to do this and had the same problem. The solution I found was to unlink children, do my stuff, and then link back.


children = for obj in myObject.children collect obj
children.parent=undefined
--Do something here
(children as array).parent = myObject


hope this helps

Snape
11 November 2006, 02:37 PM
Yes Ive been using something very similar to get me by:

select <node>
max unlink $
[do something]
$.parent = <node>

Thanks for your help Charles

Snape
11 November 2006, 02:53 PM
Sorry about this just one more question....

Does anyone know how to turn the IKHI Solver 'Enabled' state on and off with script?

Thanks again

Spencer

Snape
11 November 2006, 03:16 PM
It appears Paul Neale had answered this question before, I just found it.

--Turn if off
$.controller.enabled=0

--Turn it on
$.controller.enabled=1


Thanks

Spencer

CGTalk Moderation
11 November 2006, 03:16 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.


1