We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Create a Group and assign Objects to a Group via puzzles

Home Forums General Questions Create a Group and assign Objects to a Group via puzzles

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #83413
    johngrigni
    Customer

    Is there a way to assign an Object to a Group using puzzles?
    Is there a way to create a new Group using puzzles?

    If not then I would like to add this as a feature request.

    #83421
    visualizer
    Customer

    aah interesting !

    #83424

    We’ll think about it!

    Meanwhile here is the exec script setup to add / remove objects to/from a group.

    const groups = app.scene.getObjectByName('Cube').groupNames;
    
    // add to group "New Group"
    groups.push("New Group");
    
    // remove from group "New Group"
    const index = groups.indexOf("New Group");
    if (index >= 0)
        groups.splice(index, 1);

    Soft8Soft Tech Chief
    X | FB | LinkedIn

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.