![]() |
Set ParticleAttachmentGroup Target - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Set ParticleAttachmentGroup Target (/thread-3989.html) |
Set ParticleAttachmentGroup Target - Renman3000 - 01-09-2023 Hi there, I want to set an ObiParticleAttatchment.target, via code. I have the index of the obiRope.blueprint.groups[i]... but from there, I am not clear on how how to then get the required access. Thanks RE: Set ParticleAttachmentGroup Target - josemendez - 04-09-2023 (01-09-2023, 06:10 PM)Renman3000 Wrote: Hi there, Hi, To set the target, you just do: Code: attachment.target = yourTarget; I'm not sure how the index to the particle group would be related to this, the target and the particle group attached to it are two different things. I can suggest taking a look at the manual's attachments scripting section: http://obi.virtualmethodstudio.com/manual/6.3/scriptingattachments.html let me know if I can be of further help, kind regards RE: Set ParticleAttachmentGroup Target - Renman3000 - 04-09-2023 Ok, No problem thank you. |