Andy Haengaertner Posted July 4, 2018 Share Posted July 4, 2018 Hi there, Does anybody know how I can replace the content of an existing auto hybrid using a script? I tried DOMc "SetParent" Node but unfortunately it seems that this do not work for auto hybrids. Any tipps how I can do this? Thanks in advance Andy Quote Link to comment
DomC Posted July 4, 2018 Share Posted July 4, 2018 Hi You have to browse the container-nesting of the object to find out, how they are nested. Sometings the Content node works, sometings you need commands like vs.GetCustomObjectProfileGroup(objectHand) etc. As you can see, the autohybrid from an extrude is pretty good nested. Try first to replace the object (delete and set new object to it's parent). Maybe you have to reset object after that manipulation. Or maybe you will crash if you delete the content and do not attach a new contend (maybe start with add an additional object to the exitsting). Not tested any of this, but that's the way I would try to crack the riddle. Autohybrid.vwx Quote Link to comment
DomC Posted July 4, 2018 Share Posted July 4, 2018 Got it Your Autohybrid content has it's own origin you have to compensate this. My first script works but the autohybrid is already wrecked. by use parent node wrong. So be careful what object you put in what other object. Worst case you put them somewhere you can't delete them anymore. Autohybrid2.vwx Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.