SetTransformationFromComponents not working on emitters

Post Reply
deadalvs
Posts: 5
Joined: Wed Sep 15, 2010 2:33 pm

SetTransformationFromComponents not working on emitters

Post by deadalvs » Fri Jan 23, 2015 7:45 pm

Hi,

I am trying to set the trafos of an emitter via a RF graph. But I always get an error:
"Node 'Square01' is not of the expected class."

This actually works with a standard mesh, e.g. a Cone.

How can I fix this ?


Any input welcome ...

Matt Buehler

Here's the network:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<scene>
    <graph-interface-order/>
    <evaluation-order>
        <evaluator-node>Evaluator_02</evaluator-node>
    </evaluation-order>
    <nodes>
        <node>
            <name>GetObject_02</name>
            <type>GetObject</type>
            <inputs>
                <input>
                    <name>name</name>
                    <type>string</type>
                    <value>Square01</value>
                </input>
            </inputs>
        </node>
        <node>
            <name>GetTransformation_01</name>
            <type>GetTransformation</type>
            <inputs/>
        </node>
        <node>
            <name>GetObject_01</name>
            <type>GetObject</type>
            <inputs>
                <input>
                    <name>name</name>
                    <type>string</type>
                    <value>Cube01</value>
                </input>
            </inputs>
        </node>
        <node>
            <name>GetNodeBoundingBox_01</name>
            <type>GetNodeBoundingBox</type>
            <inputs/>
        </node>
        <node>
            <name>BoxInfo_01</name>
            <type>BoxInfo</type>
            <inputs/>
        </node>
        <node>
            <name>Vector3ToComponents_01</name>
            <type>Vector3ToComponents</type>
            <inputs/>
        </node>
        <node>
            <name>SetTransformationFromComponents_01</name>
            <type>SetTransformationFromComponents</type>
            <inputs/>
        </node>
        <node>
            <name>Evaluator_02</name>
            <type>Evaluator</type>
            <inputs>
                <input>
                    <name>evaluate</name>
                </input>
            </inputs>
            <outputs/>
        </node>
        <node>
            <name>Add_01</name>
            <type>Add</type>
            <inputs/>
        </node>
        <node>
            <name>Vector3_01</name>
            <type>Vector3</type>
            <inputs>
                <input>
                    <name>in</name>
                    <type>vector3</type>
                    <value>0.000000,3.000000,0.000000</value>
                </input>
            </inputs>
        </node>
        <node>
            <name>Vector3FromComponents_01</name>
            <type>Vector3FromComponents</type>
            <inputs/>
        </node>
        <node>
            <name>Vector3ToComponents_02</name>
            <type>Vector3ToComponents</type>
            <inputs/>
        </node>
        <node>
            <name>Vector3ToComponents_03</name>
            <type>Vector3ToComponents</type>
            <inputs/>
        </node>
    </nodes>
    <connections>
        <connection>
            <source>root.Vector3ToComponents_02.z</source>
            <target>root.Vector3FromComponents_01.z</target>
        </connection>
        <connection>
            <source>root.Add_01.result</source>
            <target>root.SetTransformationFromComponents_01.translation</target>
        </connection>
        <connection>
            <source>root.GetObject_02.node</source>
            <target>root.GetTransformation_01.node</target>
        </connection>
        <connection>
            <source>root.GetObject_01.node</source>
            <target>root.GetNodeBoundingBox_01.node</target>
        </connection>
        <connection>
            <source>root.GetNodeBoundingBox_01.box</source>
            <target>root.BoxInfo_01.box</target>
        </connection>
        <connection>
            <source>root.BoxInfo_01.max</source>
            <target>root.Vector3ToComponents_01.vector</target>
        </connection>
        <connection>
            <source>root.BoxInfo_01.center</source>
            <target>root.Vector3ToComponents_02.vector</target>
        </connection>
        <connection>
            <source>root.Vector3ToComponents_01.y</source>
            <target>root.Vector3FromComponents_01.y</target>
        </connection>
        <connection>
            <source>root.GetTransformation_01.scale</source>
            <target>root.SetTransformationFromComponents_01.scale</target>
        </connection>
        <connection>
            <source>root.SetTransformationFromComponents_01.evaluate</source>
            <target>root.Evaluator_02.evaluate</target>
        </connection>
        <connection>
            <source>root.Vector3FromComponents_01.vector3</source>
            <target>root.Add_01.in0</target>
        </connection>
        <connection>
            <source>root.Vector3_01.vector</source>
            <target>root.Add_01.in1</target>
        </connection>
        <connection>
            <source>root.Add_01.result</source>
            <target>root.Vector3ToComponents_03.vector</target>
        </connection>
        <connection>
            <source>root.Vector3ToComponents_02.x</source>
            <target>root.Vector3FromComponents_01.x</target>
        </connection>
        <connection>
            <source>root.GetTransformation_01.rotation</source>
            <target>root.SetTransformationFromComponents_01.rotation</target>
        </connection>
        <connection>
            <source>root.GetObject_02.node</source>
            <target>root.SetTransformationFromComponents_01.node</target>
        </connection>
    </connections>
    <layout>
        <nodes>
            <node>
                <name>root.Vector3ToComponents_03</name>
                <position>1172.921997,57.073002</position>
                <color>0.572000,0.880000,0.874784</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.Vector3ToComponents_02</name>
                <position>465.386017,204.316071</position>
                <color>0.572000,0.880000,0.874784</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.Vector3FromComponents_01</name>
                <position>701.215515,163.602203</position>
                <color>0.572000,0.880000,0.874784</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.Vector3_01</name>
                <position>911.264771,57.631897</position>
                <color>0.767067,0.572000,0.880000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.Add_01</name>
                <position>973.078430,204.356415</position>
                <color>0.882000,0.573000,0.573000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.Evaluator_02</name>
                <position>1534.186157,469.952362</position>
                <color>0.572000,0.828667,0.880000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.SetTransformationFromComponents_01</name>
                <position>1295.428589,351.702057</position>
                <color>0.572000,0.654647,0.880000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.Vector3ToComponents_01</name>
                <position>464.643280,93.858521</position>
                <color>0.572000,0.880000,0.874784</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.BoxInfo_01</name>
                <position>328.651062,87.521355</position>
                <color>0.882000,0.784000,0.573000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.GetNodeBoundingBox_01</name>
                <position>105.309814,71.374329</position>
                <color>0.882000,0.784000,0.573000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.GetObject_01</name>
                <position>-66.565620,62.678280</position>
                <color>0.572000,0.654647,0.880000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.GetTransformation_01</name>
                <position>817.894836,470.058044</position>
                <color>0.572000,0.654647,0.880000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
            <node>
                <name>root.GetObject_02</name>
                <position>617.779114,433.189056</position>
                <color>0.572000,0.654647,0.880000</color>
                <collapsed>false</collapsed>
                <horizontal_inputs>true</horizontal_inputs>
                <horizontal_outputs>true</horizontal_outputs>
            </node>
        </nodes>
        <notes/>
    </layout>
</scene>


User avatar
tsn
Posts: 283
Joined: Fri Jun 11, 2010 7:22 am

Re: SetTransformationFromComponents not working on emitters

Post by tsn » Mon Jan 26, 2015 2:00 pm

Hi,

I assume that "Square01" is the name of an emitter not an object? If yes just replace "Get_Object02" through a "GetStandardEmitter" node. Then the graph will be working.

"Node 'Square01' is not of the expected class."
You get an error, because emitters are part of the emitter class, not the object class. Same applies for domains, daemons, splash, foam… They all have their own "Get…" nodes.
Thomas Schlick | Next Limit Technologies

deadalvs
Posts: 5
Joined: Wed Sep 15, 2010 2:33 pm

Re: SetTransformationFromComponents not working on emitters

Post by deadalvs » Mon Jan 26, 2015 2:09 pm

Hi!


That is valuable knowledge! And it works now.

Thanks a lot!

Matt

Post Reply