Hi dudes!
Just wondering if there's an easy way to replace an instance with a high res version?
I'm wondering because I'd like to simulate some rigid body particles with low res geo then switch to high res for the render.
Any ideas?
Thanks
Pete
Replace instance....
-
Chris_TC
- Posts: 411
- Joined: 22 Mar 2010, 16:43
Re: Replace instance....
Create a second point cloud. Read all relevant data from the first point cloud (Pointposition, Orientation, Scale) and set the same values for the second point cloud. For the particle shape use your highres instance.
When reading attributes from the first point cloud and setting it on the second, you'll have to:
Get Data -> Build array from set -> Select in Array (Index = Point ID) -> Set Data (or possibly the middle two nodes can be replaced by a Switch Context, not sure)
When reading attributes from the first point cloud and setting it on the second, you'll have to:
Get Data -> Build array from set -> Select in Array (Index = Point ID) -> Set Data (or possibly the middle two nodes can be replaced by a Switch Context, not sure)
-
TwinSnakes007
- Posts: 316
- Joined: 06 Jun 2011, 14:00
Re: Replace instance....
Create a 2nd PointCloud and use the ClonePoint node which does this kinda stuff for you.
To set the 2nd PointCloud to use the highres shape, plug a Set Instance Shape into the OnCreate port of the ClonePoint Node on the 2nd PointCloud that points to this highres shape.
To set the 2nd PointCloud to use the highres shape, plug a Set Instance Shape into the OnCreate port of the ClonePoint Node on the 2nd PointCloud that points to this highres shape.
-
Pete
- Posts: 118
- Joined: 16 Jun 2009, 07:28
Re: Replace instance....
Cool thanks!
I'm not in front of it right now but this sounds like it's going to work great.
I hadn't seen the clonepoint node, is this a 2013 thing??
P.
I'm not in front of it right now but this sounds like it's going to work great.
I hadn't seen the clonepoint node, is this a 2013 thing??
P.
-
Chris_TC
- Posts: 411
- Joined: 22 Mar 2010, 16:43
Re: Replace instance....
Haha, I had no idea this node existedTwinSnakes007 wrote:Create a 2nd PointCloud and use the ClonePoint node which does this kinda stuff for you.
-
Bullit
- Moderator
- Posts: 2621
- Joined: 24 May 2012, 07:44
Re: Replace instance....
In some situations:
An ice tree with Set data node with self.shape reference. Link with the instance shape node with object you want. This should be above all other nodes for example in Post Simulation.
An ice tree with Set data node with self.shape reference. Link with the instance shape node with object you want. This should be above all other nodes for example in Post Simulation.