Jump to content

Scattering asset. Connect/Disconnect Sop inputs and automatically switch between inputs.


Recommended Posts

Hi guys.

I want to create an asset for copystamping which will allow to connect or disconnect SOP inputs. Would be nice if asset allow to use different input numbers of instance at a time (connect/disconnect necessary objects) and switch between instances.

I can manually create a CopyStamping asset if I have a static number of inputs and if I know a number of input objects which switch operator will use (basic copystamping technic).

I've dug out some info and looks like it's best way to create the asset with a callback scripts. But I'm not familiar with callback scripts and python enough. May be some body can help me with that or have a links for similar solution.

Thank you.

copystamp_prntsrc_for_oddforce.jpg

Edited by Anatol
Link to comment
Share on other sites

Not that I really wanted but I made this in a bit casual way.

I've merged all objects which I needed for copystamping with "instance.*" , cheked "PackGeometryPrimitives BeforeMerging" and count points number with npoints("../out1"). Now I've got number of objects for copystamping.

WIP

Edited by Anatol
Link to comment
Share on other sites

Then I used ForEach SOP for stamping random instanses from MergeSOP onto points.

But still looking for solution with node connections. If some one has an idea, pls.

Edited by Anatol
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...