Digital Asset that generates Sops Automatically (Resolved)

   1016   2   1
User Avatar
Member
49 posts
Joined: Jan. 2016
Offline
Hello!
Is it possible to set up a digital asset–perhaps using python if need be, that generates a series of nodes based on user input?

Lets say a user wants this:
a certain number of add nodes that may change (say 30 or 60)
an attribute wrangle appended to each add node, with a single channel controlling the points y location.
so add sop1
attribute wrangle1
code: @P.y = ch('point0_ypos')

add sop2
attribute wrangle2
code: @P.y = ch('point1_ypos')



add sop3
attribute wrangle2
code: @P.y = ch('point1_ypos')

etc etc

On the top level of the asset, all of these channels are promoted and turned into user adjustable parameters.
That way the user can set the y position of each point as he sees fit.

This is actually for parametric building design, and we think this sort of tool will help.
Ill look into other means of doing this in the interim.


Many thanks.
There is a tutorial on digital tutors (really good by the way) by Timothy Stam that generates a file node for each element in a folder using a python wrangle.

I would like to have similar functionality without access to a preexisting database of obj files.

Any suggestions would be appreciated
Edited by jtk700cln - Feb. 8, 2018 12:01:55
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
might be better to do something like this:

make an Add SOP
select it > shift + C to put it into a subnet
RMB Create Digital Asset
drag the “Number of Points” parameter of the Add SOP into the type properties of the HDA

now you can add as many points as you want to the Add SOP and have control over their positions.

Attachments:
multi_add.hda (3.9 KB)

Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
49 posts
Joined: Jan. 2016
Offline
arctor
might be better to do something like this:

make an Add SOP
select it > shift + C to put it into a subnet
RMB Create Digital Asset
drag the “Number of Points” parameter of the Add SOP into the type properties of the HDA

now you can add as many points as you want to the Add SOP and have control over their positions.

Thanks arctor. That will work perfectly!
  • Quick Links